{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [],
   "source": [
    "import dask.array as da\n",
    "import numpy as np\n",
    "import xarray as xr"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [],
   "source": [
    "ds1 = xr.open_dataset(r\"D:\\python\\tianzhen\\shixi3_4\\ds_hgt_t_uv.nc\")\n",
    "ds2 = xr.open_dataset(r\"D:\\python\\tianzhen\\shixi3_4\\ds_rh.nc\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
       "<defs>\n",
       "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
       "<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
       "<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
       "<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
       "</symbol>\n",
       "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
       "<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
       "<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
       "<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
       "<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
       "</symbol>\n",
       "</defs>\n",
       "</svg>\n",
       "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
       " *\n",
       " */\n",
       "\n",
       ":root {\n",
       "  --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
       "  --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
       "  --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
       "  --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
       "  --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
       "  --xr-background-color: var(--jp-layout-color0, white);\n",
       "  --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
       "  --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
       "}\n",
       "\n",
       "html[theme=dark],\n",
       "body.vscode-dark {\n",
       "  --xr-font-color0: rgba(255, 255, 255, 1);\n",
       "  --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
       "  --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
       "  --xr-border-color: #1F1F1F;\n",
       "  --xr-disabled-color: #515151;\n",
       "  --xr-background-color: #111111;\n",
       "  --xr-background-color-row-even: #111111;\n",
       "  --xr-background-color-row-odd: #313131;\n",
       "}\n",
       "\n",
       ".xr-wrap {\n",
       "  display: block;\n",
       "  min-width: 300px;\n",
       "  max-width: 700px;\n",
       "}\n",
       "\n",
       ".xr-text-repr-fallback {\n",
       "  /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-header {\n",
       "  padding-top: 6px;\n",
       "  padding-bottom: 6px;\n",
       "  margin-bottom: 4px;\n",
       "  border-bottom: solid 1px var(--xr-border-color);\n",
       "}\n",
       "\n",
       ".xr-header > div,\n",
       ".xr-header > ul {\n",
       "  display: inline;\n",
       "  margin-top: 0;\n",
       "  margin-bottom: 0;\n",
       "}\n",
       "\n",
       ".xr-obj-type,\n",
       ".xr-array-name {\n",
       "  margin-left: 2px;\n",
       "  margin-right: 10px;\n",
       "}\n",
       "\n",
       ".xr-obj-type {\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-sections {\n",
       "  padding-left: 0 !important;\n",
       "  display: grid;\n",
       "  grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
       "}\n",
       "\n",
       ".xr-section-item {\n",
       "  display: contents;\n",
       "}\n",
       "\n",
       ".xr-section-item input {\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-section-item input + label {\n",
       "  color: var(--xr-disabled-color);\n",
       "}\n",
       "\n",
       ".xr-section-item input:enabled + label {\n",
       "  cursor: pointer;\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-section-item input:enabled + label:hover {\n",
       "  color: var(--xr-font-color0);\n",
       "}\n",
       "\n",
       ".xr-section-summary {\n",
       "  grid-column: 1;\n",
       "  color: var(--xr-font-color2);\n",
       "  font-weight: 500;\n",
       "}\n",
       "\n",
       ".xr-section-summary > span {\n",
       "  display: inline-block;\n",
       "  padding-left: 0.5em;\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:disabled + label {\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-section-summary-in + label:before {\n",
       "  display: inline-block;\n",
       "  content: '►';\n",
       "  font-size: 11px;\n",
       "  width: 15px;\n",
       "  text-align: center;\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:disabled + label:before {\n",
       "  color: var(--xr-disabled-color);\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:checked + label:before {\n",
       "  content: '▼';\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:checked + label > span {\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-section-summary,\n",
       ".xr-section-inline-details {\n",
       "  padding-top: 4px;\n",
       "  padding-bottom: 4px;\n",
       "}\n",
       "\n",
       ".xr-section-inline-details {\n",
       "  grid-column: 2 / -1;\n",
       "}\n",
       "\n",
       ".xr-section-details {\n",
       "  display: none;\n",
       "  grid-column: 1 / -1;\n",
       "  margin-bottom: 5px;\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:checked ~ .xr-section-details {\n",
       "  display: contents;\n",
       "}\n",
       "\n",
       ".xr-array-wrap {\n",
       "  grid-column: 1 / -1;\n",
       "  display: grid;\n",
       "  grid-template-columns: 20px auto;\n",
       "}\n",
       "\n",
       ".xr-array-wrap > label {\n",
       "  grid-column: 1;\n",
       "  vertical-align: top;\n",
       "}\n",
       "\n",
       ".xr-preview {\n",
       "  color: var(--xr-font-color3);\n",
       "}\n",
       "\n",
       ".xr-array-preview,\n",
       ".xr-array-data {\n",
       "  padding: 0 5px !important;\n",
       "  grid-column: 2;\n",
       "}\n",
       "\n",
       ".xr-array-data,\n",
       ".xr-array-in:checked ~ .xr-array-preview {\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-array-in:checked ~ .xr-array-data,\n",
       ".xr-array-preview {\n",
       "  display: inline-block;\n",
       "}\n",
       "\n",
       ".xr-dim-list {\n",
       "  display: inline-block !important;\n",
       "  list-style: none;\n",
       "  padding: 0 !important;\n",
       "  margin: 0;\n",
       "}\n",
       "\n",
       ".xr-dim-list li {\n",
       "  display: inline-block;\n",
       "  padding: 0;\n",
       "  margin: 0;\n",
       "}\n",
       "\n",
       ".xr-dim-list:before {\n",
       "  content: '(';\n",
       "}\n",
       "\n",
       ".xr-dim-list:after {\n",
       "  content: ')';\n",
       "}\n",
       "\n",
       ".xr-dim-list li:not(:last-child):after {\n",
       "  content: ',';\n",
       "  padding-right: 5px;\n",
       "}\n",
       "\n",
       ".xr-has-index {\n",
       "  font-weight: bold;\n",
       "}\n",
       "\n",
       ".xr-var-list,\n",
       ".xr-var-item {\n",
       "  display: contents;\n",
       "}\n",
       "\n",
       ".xr-var-item > div,\n",
       ".xr-var-item label,\n",
       ".xr-var-item > .xr-var-name span {\n",
       "  background-color: var(--xr-background-color-row-even);\n",
       "  margin-bottom: 0;\n",
       "}\n",
       "\n",
       ".xr-var-item > .xr-var-name:hover span {\n",
       "  padding-right: 5px;\n",
       "}\n",
       "\n",
       ".xr-var-list > li:nth-child(odd) > div,\n",
       ".xr-var-list > li:nth-child(odd) > label,\n",
       ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
       "  background-color: var(--xr-background-color-row-odd);\n",
       "}\n",
       "\n",
       ".xr-var-name {\n",
       "  grid-column: 1;\n",
       "}\n",
       "\n",
       ".xr-var-dims {\n",
       "  grid-column: 2;\n",
       "}\n",
       "\n",
       ".xr-var-dtype {\n",
       "  grid-column: 3;\n",
       "  text-align: right;\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-var-preview {\n",
       "  grid-column: 4;\n",
       "}\n",
       "\n",
       ".xr-var-name,\n",
       ".xr-var-dims,\n",
       ".xr-var-dtype,\n",
       ".xr-preview,\n",
       ".xr-attrs dt {\n",
       "  white-space: nowrap;\n",
       "  overflow: hidden;\n",
       "  text-overflow: ellipsis;\n",
       "  padding-right: 10px;\n",
       "}\n",
       "\n",
       ".xr-var-name:hover,\n",
       ".xr-var-dims:hover,\n",
       ".xr-var-dtype:hover,\n",
       ".xr-attrs dt:hover {\n",
       "  overflow: visible;\n",
       "  width: auto;\n",
       "  z-index: 1;\n",
       "}\n",
       "\n",
       ".xr-var-attrs,\n",
       ".xr-var-data {\n",
       "  display: none;\n",
       "  background-color: var(--xr-background-color) !important;\n",
       "  padding-bottom: 5px !important;\n",
       "}\n",
       "\n",
       ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
       ".xr-var-data-in:checked ~ .xr-var-data {\n",
       "  display: block;\n",
       "}\n",
       "\n",
       ".xr-var-data > table {\n",
       "  float: right;\n",
       "}\n",
       "\n",
       ".xr-var-name span,\n",
       ".xr-var-data,\n",
       ".xr-attrs {\n",
       "  padding-left: 25px !important;\n",
       "}\n",
       "\n",
       ".xr-attrs,\n",
       ".xr-var-attrs,\n",
       ".xr-var-data {\n",
       "  grid-column: 1 / -1;\n",
       "}\n",
       "\n",
       "dl.xr-attrs {\n",
       "  padding: 0;\n",
       "  margin: 0;\n",
       "  display: grid;\n",
       "  grid-template-columns: 125px auto;\n",
       "}\n",
       "\n",
       ".xr-attrs dt,\n",
       ".xr-attrs dd {\n",
       "  padding: 0;\n",
       "  margin: 0;\n",
       "  float: left;\n",
       "  padding-right: 10px;\n",
       "  width: auto;\n",
       "}\n",
       "\n",
       ".xr-attrs dt {\n",
       "  font-weight: normal;\n",
       "  grid-column: 1;\n",
       "}\n",
       "\n",
       ".xr-attrs dt:hover span {\n",
       "  display: inline-block;\n",
       "  background: var(--xr-background-color);\n",
       "  padding-right: 10px;\n",
       "}\n",
       "\n",
       ".xr-attrs dd {\n",
       "  grid-column: 2;\n",
       "  white-space: pre-wrap;\n",
       "  word-break: break-all;\n",
       "}\n",
       "\n",
       ".xr-icon-database,\n",
       ".xr-icon-file-text2 {\n",
       "  display: inline-block;\n",
       "  vertical-align: middle;\n",
       "  width: 1em;\n",
       "  height: 1.5em !important;\n",
       "  stroke-width: 0;\n",
       "  stroke: currentColor;\n",
       "  fill: currentColor;\n",
       "}\n",
       "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
       "Dimensions:  (level: 12, time: 24, lat: 37, lon: 73)\n",
       "Coordinates:\n",
       "  * lon      (lon) float64 0.0 2.5 5.0 7.5 10.0 ... 172.5 175.0 177.5 180.0\n",
       "  * lat      (lat) float64 0.0 2.5 5.0 7.5 10.0 ... 80.0 82.5 85.0 87.5 90.0\n",
       "  * time     (time) datetime64[ns] 2021-07-17 ... 2021-07-22\n",
       "  * level    (level) float64 1e+03 925.0 850.0 700.0 ... 250.0 200.0 150.0 100.0\n",
       "Data variables:\n",
       "    hgt      (level, time, lat, lon) float64 ...\n",
       "    t        (level, time, lat, lon) float64 ...\n",
       "    u        (level, time, lat, lon) float64 ...\n",
       "    v        (level, time, lat, lon) float64 ...</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-b73ba7b2-b090-4aa5-b20c-cd6073b77ec8' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-b73ba7b2-b090-4aa5-b20c-cd6073b77ec8' class='xr-section-summary'  title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>level</span>: 12</li><li><span class='xr-has-index'>time</span>: 24</li><li><span class='xr-has-index'>lat</span>: 37</li><li><span class='xr-has-index'>lon</span>: 73</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-72da088f-bb0a-4e58-8465-7706b6ec978a' class='xr-section-summary-in' type='checkbox'  checked><label for='section-72da088f-bb0a-4e58-8465-7706b6ec978a' class='xr-section-summary' >Coordinates: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lon</span></div><div class='xr-var-dims'>(lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 2.5 5.0 ... 175.0 177.5 180.0</div><input id='attrs-588cdd8b-c109-476e-936d-8c686629964b' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-588cdd8b-c109-476e-936d-8c686629964b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6b28f4e7-8844-4bca-a151-83575ee6887f' class='xr-var-data-in' type='checkbox'><label for='data-6b28f4e7-8844-4bca-a151-83575ee6887f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([  0. ,   2.5,   5. ,   7.5,  10. ,  12.5,  15. ,  17.5,  20. ,  22.5,\n",
       "        25. ,  27.5,  30. ,  32.5,  35. ,  37.5,  40. ,  42.5,  45. ,  47.5,\n",
       "        50. ,  52.5,  55. ,  57.5,  60. ,  62.5,  65. ,  67.5,  70. ,  72.5,\n",
       "        75. ,  77.5,  80. ,  82.5,  85. ,  87.5,  90. ,  92.5,  95. ,  97.5,\n",
       "       100. , 102.5, 105. , 107.5, 110. , 112.5, 115. , 117.5, 120. , 122.5,\n",
       "       125. , 127.5, 130. , 132.5, 135. , 137.5, 140. , 142.5, 145. , 147.5,\n",
       "       150. , 152.5, 155. , 157.5, 160. , 162.5, 165. , 167.5, 170. , 172.5,\n",
       "       175. , 177.5, 180. ])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lat</span></div><div class='xr-var-dims'>(lat)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 2.5 5.0 7.5 ... 85.0 87.5 90.0</div><input id='attrs-9e5ac4eb-86f6-4398-ba6e-852d4471c1be' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-9e5ac4eb-86f6-4398-ba6e-852d4471c1be' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-3655d021-dee7-4278-902c-5a8b96065aec' class='xr-var-data-in' type='checkbox'><label for='data-3655d021-dee7-4278-902c-5a8b96065aec' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 0. ,  2.5,  5. ,  7.5, 10. , 12.5, 15. , 17.5, 20. , 22.5, 25. , 27.5,\n",
       "       30. , 32.5, 35. , 37.5, 40. , 42.5, 45. , 47.5, 50. , 52.5, 55. , 57.5,\n",
       "       60. , 62.5, 65. , 67.5, 70. , 72.5, 75. , 77.5, 80. , 82.5, 85. , 87.5,\n",
       "       90. ])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>2021-07-17 ... 2021-07-22</div><input id='attrs-1d0a397e-f01c-426b-afbf-e5aae5fb2b35' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-1d0a397e-f01c-426b-afbf-e5aae5fb2b35' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-323313b3-9a32-40a4-9966-1780fee7195e' class='xr-var-data-in' type='checkbox'><label for='data-323313b3-9a32-40a4-9966-1780fee7195e' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([&#x27;2021-07-17T00:00:00.000000000&#x27;, &#x27;2021-07-17T05:13:02.608695652&#x27;,\n",
       "       &#x27;2021-07-17T10:26:05.217391304&#x27;, &#x27;2021-07-17T15:39:07.826086956&#x27;,\n",
       "       &#x27;2021-07-17T20:52:10.434782608&#x27;, &#x27;2021-07-18T02:05:13.043478260&#x27;,\n",
       "       &#x27;2021-07-18T07:18:15.652173913&#x27;, &#x27;2021-07-18T12:31:18.260869565&#x27;,\n",
       "       &#x27;2021-07-18T17:44:20.869565217&#x27;, &#x27;2021-07-18T22:57:23.478260869&#x27;,\n",
       "       &#x27;2021-07-19T04:10:26.086956521&#x27;, &#x27;2021-07-19T09:23:28.695652173&#x27;,\n",
       "       &#x27;2021-07-19T14:36:31.304347826&#x27;, &#x27;2021-07-19T19:49:33.913043478&#x27;,\n",
       "       &#x27;2021-07-20T01:02:36.521739130&#x27;, &#x27;2021-07-20T06:15:39.130434782&#x27;,\n",
       "       &#x27;2021-07-20T11:28:41.739130434&#x27;, &#x27;2021-07-20T16:41:44.347826087&#x27;,\n",
       "       &#x27;2021-07-20T21:54:46.956521739&#x27;, &#x27;2021-07-21T03:07:49.565217391&#x27;,\n",
       "       &#x27;2021-07-21T08:20:52.173913043&#x27;, &#x27;2021-07-21T13:33:54.782608695&#x27;,\n",
       "       &#x27;2021-07-21T18:46:57.391304347&#x27;, &#x27;2021-07-22T00:00:00.000000000&#x27;],\n",
       "      dtype=&#x27;datetime64[ns]&#x27;)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>level</span></div><div class='xr-var-dims'>(level)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1e+03 925.0 850.0 ... 150.0 100.0</div><input id='attrs-d87dfa14-d42b-4371-9908-de4519d75993' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d87dfa14-d42b-4371-9908-de4519d75993' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-890ef9b5-84cf-4516-8298-22eddaedf7c2' class='xr-var-data-in' type='checkbox'><label for='data-890ef9b5-84cf-4516-8298-22eddaedf7c2' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([1000.,  925.,  850.,  700.,  600.,  500.,  400.,  300.,  250.,  200.,\n",
       "        150.,  100.])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-db735824-1118-4b88-a92b-11eb3b71631f' class='xr-section-summary-in' type='checkbox'  checked><label for='section-db735824-1118-4b88-a92b-11eb3b71631f' class='xr-section-summary' >Data variables: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>hgt</span></div><div class='xr-var-dims'>(level, time, lat, lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-c868591f-6b1f-4c35-8646-6ada07f2e95c' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c868591f-6b1f-4c35-8646-6ada07f2e95c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-5c5c12f7-e9f2-40b4-b23e-d29857215ae1' class='xr-var-data-in' type='checkbox'><label for='data-5c5c12f7-e9f2-40b4-b23e-d29857215ae1' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>[777888 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>t</span></div><div class='xr-var-dims'>(level, time, lat, lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-9f13bf6d-6b6d-4666-b291-03f0e60061f7' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-9f13bf6d-6b6d-4666-b291-03f0e60061f7' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-069d66a2-82fd-4119-9082-a349860172a2' class='xr-var-data-in' type='checkbox'><label for='data-069d66a2-82fd-4119-9082-a349860172a2' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>[777888 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>u</span></div><div class='xr-var-dims'>(level, time, lat, lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-c4f62e98-03b8-415a-92cf-a0c403c7c34c' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c4f62e98-03b8-415a-92cf-a0c403c7c34c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b7ecab39-fba9-4e11-96fb-9e69db22e54e' class='xr-var-data-in' type='checkbox'><label for='data-b7ecab39-fba9-4e11-96fb-9e69db22e54e' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>[777888 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>v</span></div><div class='xr-var-dims'>(level, time, lat, lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-979bfe89-7c47-4d7a-a4b2-2b00c6f68709' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-979bfe89-7c47-4d7a-a4b2-2b00c6f68709' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8b5f45d6-3d04-4e08-b8dc-0f2575d3af9a' class='xr-var-data-in' type='checkbox'><label for='data-8b5f45d6-3d04-4e08-b8dc-0f2575d3af9a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>[777888 values with dtype=float64]</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-0be9e7f6-f871-4455-b94e-048b0ae62348' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-0be9e7f6-f871-4455-b94e-048b0ae62348' class='xr-section-summary'  title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
      ],
      "text/plain": [
       "<xarray.Dataset>\n",
       "Dimensions:  (level: 12, time: 24, lat: 37, lon: 73)\n",
       "Coordinates:\n",
       "  * lon      (lon) float64 0.0 2.5 5.0 7.5 10.0 ... 172.5 175.0 177.5 180.0\n",
       "  * lat      (lat) float64 0.0 2.5 5.0 7.5 10.0 ... 80.0 82.5 85.0 87.5 90.0\n",
       "  * time     (time) datetime64[ns] 2021-07-17 ... 2021-07-22\n",
       "  * level    (level) float64 1e+03 925.0 850.0 700.0 ... 250.0 200.0 150.0 100.0\n",
       "Data variables:\n",
       "    hgt      (level, time, lat, lon) float64 ...\n",
       "    t        (level, time, lat, lon) float64 ...\n",
       "    u        (level, time, lat, lon) float64 ...\n",
       "    v        (level, time, lat, lon) float64 ..."
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ds1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
       "<defs>\n",
       "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
       "<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
       "<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
       "<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
       "</symbol>\n",
       "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
       "<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
       "<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
       "<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
       "<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
       "</symbol>\n",
       "</defs>\n",
       "</svg>\n",
       "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
       " *\n",
       " */\n",
       "\n",
       ":root {\n",
       "  --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
       "  --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
       "  --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
       "  --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
       "  --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
       "  --xr-background-color: var(--jp-layout-color0, white);\n",
       "  --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
       "  --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
       "}\n",
       "\n",
       "html[theme=dark],\n",
       "body.vscode-dark {\n",
       "  --xr-font-color0: rgba(255, 255, 255, 1);\n",
       "  --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
       "  --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
       "  --xr-border-color: #1F1F1F;\n",
       "  --xr-disabled-color: #515151;\n",
       "  --xr-background-color: #111111;\n",
       "  --xr-background-color-row-even: #111111;\n",
       "  --xr-background-color-row-odd: #313131;\n",
       "}\n",
       "\n",
       ".xr-wrap {\n",
       "  display: block;\n",
       "  min-width: 300px;\n",
       "  max-width: 700px;\n",
       "}\n",
       "\n",
       ".xr-text-repr-fallback {\n",
       "  /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-header {\n",
       "  padding-top: 6px;\n",
       "  padding-bottom: 6px;\n",
       "  margin-bottom: 4px;\n",
       "  border-bottom: solid 1px var(--xr-border-color);\n",
       "}\n",
       "\n",
       ".xr-header > div,\n",
       ".xr-header > ul {\n",
       "  display: inline;\n",
       "  margin-top: 0;\n",
       "  margin-bottom: 0;\n",
       "}\n",
       "\n",
       ".xr-obj-type,\n",
       ".xr-array-name {\n",
       "  margin-left: 2px;\n",
       "  margin-right: 10px;\n",
       "}\n",
       "\n",
       ".xr-obj-type {\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-sections {\n",
       "  padding-left: 0 !important;\n",
       "  display: grid;\n",
       "  grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
       "}\n",
       "\n",
       ".xr-section-item {\n",
       "  display: contents;\n",
       "}\n",
       "\n",
       ".xr-section-item input {\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-section-item input + label {\n",
       "  color: var(--xr-disabled-color);\n",
       "}\n",
       "\n",
       ".xr-section-item input:enabled + label {\n",
       "  cursor: pointer;\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-section-item input:enabled + label:hover {\n",
       "  color: var(--xr-font-color0);\n",
       "}\n",
       "\n",
       ".xr-section-summary {\n",
       "  grid-column: 1;\n",
       "  color: var(--xr-font-color2);\n",
       "  font-weight: 500;\n",
       "}\n",
       "\n",
       ".xr-section-summary > span {\n",
       "  display: inline-block;\n",
       "  padding-left: 0.5em;\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:disabled + label {\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-section-summary-in + label:before {\n",
       "  display: inline-block;\n",
       "  content: '►';\n",
       "  font-size: 11px;\n",
       "  width: 15px;\n",
       "  text-align: center;\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:disabled + label:before {\n",
       "  color: var(--xr-disabled-color);\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:checked + label:before {\n",
       "  content: '▼';\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:checked + label > span {\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-section-summary,\n",
       ".xr-section-inline-details {\n",
       "  padding-top: 4px;\n",
       "  padding-bottom: 4px;\n",
       "}\n",
       "\n",
       ".xr-section-inline-details {\n",
       "  grid-column: 2 / -1;\n",
       "}\n",
       "\n",
       ".xr-section-details {\n",
       "  display: none;\n",
       "  grid-column: 1 / -1;\n",
       "  margin-bottom: 5px;\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:checked ~ .xr-section-details {\n",
       "  display: contents;\n",
       "}\n",
       "\n",
       ".xr-array-wrap {\n",
       "  grid-column: 1 / -1;\n",
       "  display: grid;\n",
       "  grid-template-columns: 20px auto;\n",
       "}\n",
       "\n",
       ".xr-array-wrap > label {\n",
       "  grid-column: 1;\n",
       "  vertical-align: top;\n",
       "}\n",
       "\n",
       ".xr-preview {\n",
       "  color: var(--xr-font-color3);\n",
       "}\n",
       "\n",
       ".xr-array-preview,\n",
       ".xr-array-data {\n",
       "  padding: 0 5px !important;\n",
       "  grid-column: 2;\n",
       "}\n",
       "\n",
       ".xr-array-data,\n",
       ".xr-array-in:checked ~ .xr-array-preview {\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-array-in:checked ~ .xr-array-data,\n",
       ".xr-array-preview {\n",
       "  display: inline-block;\n",
       "}\n",
       "\n",
       ".xr-dim-list {\n",
       "  display: inline-block !important;\n",
       "  list-style: none;\n",
       "  padding: 0 !important;\n",
       "  margin: 0;\n",
       "}\n",
       "\n",
       ".xr-dim-list li {\n",
       "  display: inline-block;\n",
       "  padding: 0;\n",
       "  margin: 0;\n",
       "}\n",
       "\n",
       ".xr-dim-list:before {\n",
       "  content: '(';\n",
       "}\n",
       "\n",
       ".xr-dim-list:after {\n",
       "  content: ')';\n",
       "}\n",
       "\n",
       ".xr-dim-list li:not(:last-child):after {\n",
       "  content: ',';\n",
       "  padding-right: 5px;\n",
       "}\n",
       "\n",
       ".xr-has-index {\n",
       "  font-weight: bold;\n",
       "}\n",
       "\n",
       ".xr-var-list,\n",
       ".xr-var-item {\n",
       "  display: contents;\n",
       "}\n",
       "\n",
       ".xr-var-item > div,\n",
       ".xr-var-item label,\n",
       ".xr-var-item > .xr-var-name span {\n",
       "  background-color: var(--xr-background-color-row-even);\n",
       "  margin-bottom: 0;\n",
       "}\n",
       "\n",
       ".xr-var-item > .xr-var-name:hover span {\n",
       "  padding-right: 5px;\n",
       "}\n",
       "\n",
       ".xr-var-list > li:nth-child(odd) > div,\n",
       ".xr-var-list > li:nth-child(odd) > label,\n",
       ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
       "  background-color: var(--xr-background-color-row-odd);\n",
       "}\n",
       "\n",
       ".xr-var-name {\n",
       "  grid-column: 1;\n",
       "}\n",
       "\n",
       ".xr-var-dims {\n",
       "  grid-column: 2;\n",
       "}\n",
       "\n",
       ".xr-var-dtype {\n",
       "  grid-column: 3;\n",
       "  text-align: right;\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-var-preview {\n",
       "  grid-column: 4;\n",
       "}\n",
       "\n",
       ".xr-var-name,\n",
       ".xr-var-dims,\n",
       ".xr-var-dtype,\n",
       ".xr-preview,\n",
       ".xr-attrs dt {\n",
       "  white-space: nowrap;\n",
       "  overflow: hidden;\n",
       "  text-overflow: ellipsis;\n",
       "  padding-right: 10px;\n",
       "}\n",
       "\n",
       ".xr-var-name:hover,\n",
       ".xr-var-dims:hover,\n",
       ".xr-var-dtype:hover,\n",
       ".xr-attrs dt:hover {\n",
       "  overflow: visible;\n",
       "  width: auto;\n",
       "  z-index: 1;\n",
       "}\n",
       "\n",
       ".xr-var-attrs,\n",
       ".xr-var-data {\n",
       "  display: none;\n",
       "  background-color: var(--xr-background-color) !important;\n",
       "  padding-bottom: 5px !important;\n",
       "}\n",
       "\n",
       ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
       ".xr-var-data-in:checked ~ .xr-var-data {\n",
       "  display: block;\n",
       "}\n",
       "\n",
       ".xr-var-data > table {\n",
       "  float: right;\n",
       "}\n",
       "\n",
       ".xr-var-name span,\n",
       ".xr-var-data,\n",
       ".xr-attrs {\n",
       "  padding-left: 25px !important;\n",
       "}\n",
       "\n",
       ".xr-attrs,\n",
       ".xr-var-attrs,\n",
       ".xr-var-data {\n",
       "  grid-column: 1 / -1;\n",
       "}\n",
       "\n",
       "dl.xr-attrs {\n",
       "  padding: 0;\n",
       "  margin: 0;\n",
       "  display: grid;\n",
       "  grid-template-columns: 125px auto;\n",
       "}\n",
       "\n",
       ".xr-attrs dt,\n",
       ".xr-attrs dd {\n",
       "  padding: 0;\n",
       "  margin: 0;\n",
       "  float: left;\n",
       "  padding-right: 10px;\n",
       "  width: auto;\n",
       "}\n",
       "\n",
       ".xr-attrs dt {\n",
       "  font-weight: normal;\n",
       "  grid-column: 1;\n",
       "}\n",
       "\n",
       ".xr-attrs dt:hover span {\n",
       "  display: inline-block;\n",
       "  background: var(--xr-background-color);\n",
       "  padding-right: 10px;\n",
       "}\n",
       "\n",
       ".xr-attrs dd {\n",
       "  grid-column: 2;\n",
       "  white-space: pre-wrap;\n",
       "  word-break: break-all;\n",
       "}\n",
       "\n",
       ".xr-icon-database,\n",
       ".xr-icon-file-text2 {\n",
       "  display: inline-block;\n",
       "  vertical-align: middle;\n",
       "  width: 1em;\n",
       "  height: 1.5em !important;\n",
       "  stroke-width: 0;\n",
       "  stroke: currentColor;\n",
       "  fill: currentColor;\n",
       "}\n",
       "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
       "Dimensions:  (level: 8, time: 24, lat: 37, lon: 73)\n",
       "Coordinates:\n",
       "  * lon      (lon) float64 0.0 2.5 5.0 7.5 10.0 ... 172.5 175.0 177.5 180.0\n",
       "  * lat      (lat) float64 0.0 2.5 5.0 7.5 10.0 ... 80.0 82.5 85.0 87.5 90.0\n",
       "  * time     (time) datetime64[ns] 2021-07-17 ... 2021-07-22\n",
       "  * level    (level) float64 1e+03 925.0 850.0 700.0 600.0 500.0 400.0 300.0\n",
       "Data variables:\n",
       "    rh       (level, time, lat, lon) float64 ...</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-adfc4999-0496-4a1f-9e2c-826dbe8376cd' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-adfc4999-0496-4a1f-9e2c-826dbe8376cd' class='xr-section-summary'  title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>level</span>: 8</li><li><span class='xr-has-index'>time</span>: 24</li><li><span class='xr-has-index'>lat</span>: 37</li><li><span class='xr-has-index'>lon</span>: 73</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-588b9e81-9671-4053-9d2f-03e2360e6fc4' class='xr-section-summary-in' type='checkbox'  checked><label for='section-588b9e81-9671-4053-9d2f-03e2360e6fc4' class='xr-section-summary' >Coordinates: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lon</span></div><div class='xr-var-dims'>(lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 2.5 5.0 ... 175.0 177.5 180.0</div><input id='attrs-c26efa92-a71e-4cf2-9643-3a8c4742d475' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c26efa92-a71e-4cf2-9643-3a8c4742d475' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ffb6f82a-5574-49e4-b0f2-058fe4447c8f' class='xr-var-data-in' type='checkbox'><label for='data-ffb6f82a-5574-49e4-b0f2-058fe4447c8f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([  0. ,   2.5,   5. ,   7.5,  10. ,  12.5,  15. ,  17.5,  20. ,  22.5,\n",
       "        25. ,  27.5,  30. ,  32.5,  35. ,  37.5,  40. ,  42.5,  45. ,  47.5,\n",
       "        50. ,  52.5,  55. ,  57.5,  60. ,  62.5,  65. ,  67.5,  70. ,  72.5,\n",
       "        75. ,  77.5,  80. ,  82.5,  85. ,  87.5,  90. ,  92.5,  95. ,  97.5,\n",
       "       100. , 102.5, 105. , 107.5, 110. , 112.5, 115. , 117.5, 120. , 122.5,\n",
       "       125. , 127.5, 130. , 132.5, 135. , 137.5, 140. , 142.5, 145. , 147.5,\n",
       "       150. , 152.5, 155. , 157.5, 160. , 162.5, 165. , 167.5, 170. , 172.5,\n",
       "       175. , 177.5, 180. ])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lat</span></div><div class='xr-var-dims'>(lat)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 2.5 5.0 7.5 ... 85.0 87.5 90.0</div><input id='attrs-75c3df38-2e42-419f-bb29-19780b29fa48' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-75c3df38-2e42-419f-bb29-19780b29fa48' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-63444b0c-303e-4c8a-9c5f-4f6bf8e832c8' class='xr-var-data-in' type='checkbox'><label for='data-63444b0c-303e-4c8a-9c5f-4f6bf8e832c8' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 0. ,  2.5,  5. ,  7.5, 10. , 12.5, 15. , 17.5, 20. , 22.5, 25. , 27.5,\n",
       "       30. , 32.5, 35. , 37.5, 40. , 42.5, 45. , 47.5, 50. , 52.5, 55. , 57.5,\n",
       "       60. , 62.5, 65. , 67.5, 70. , 72.5, 75. , 77.5, 80. , 82.5, 85. , 87.5,\n",
       "       90. ])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>2021-07-17 ... 2021-07-22</div><input id='attrs-4d2b3708-f473-4747-bc00-e24da4e27faf' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-4d2b3708-f473-4747-bc00-e24da4e27faf' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-473e9688-0b66-4c6a-8865-2a9399307075' class='xr-var-data-in' type='checkbox'><label for='data-473e9688-0b66-4c6a-8865-2a9399307075' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([&#x27;2021-07-17T00:00:00.000000000&#x27;, &#x27;2021-07-17T05:13:02.608695652&#x27;,\n",
       "       &#x27;2021-07-17T10:26:05.217391304&#x27;, &#x27;2021-07-17T15:39:07.826086956&#x27;,\n",
       "       &#x27;2021-07-17T20:52:10.434782608&#x27;, &#x27;2021-07-18T02:05:13.043478260&#x27;,\n",
       "       &#x27;2021-07-18T07:18:15.652173913&#x27;, &#x27;2021-07-18T12:31:18.260869565&#x27;,\n",
       "       &#x27;2021-07-18T17:44:20.869565217&#x27;, &#x27;2021-07-18T22:57:23.478260869&#x27;,\n",
       "       &#x27;2021-07-19T04:10:26.086956521&#x27;, &#x27;2021-07-19T09:23:28.695652173&#x27;,\n",
       "       &#x27;2021-07-19T14:36:31.304347826&#x27;, &#x27;2021-07-19T19:49:33.913043478&#x27;,\n",
       "       &#x27;2021-07-20T01:02:36.521739130&#x27;, &#x27;2021-07-20T06:15:39.130434782&#x27;,\n",
       "       &#x27;2021-07-20T11:28:41.739130434&#x27;, &#x27;2021-07-20T16:41:44.347826087&#x27;,\n",
       "       &#x27;2021-07-20T21:54:46.956521739&#x27;, &#x27;2021-07-21T03:07:49.565217391&#x27;,\n",
       "       &#x27;2021-07-21T08:20:52.173913043&#x27;, &#x27;2021-07-21T13:33:54.782608695&#x27;,\n",
       "       &#x27;2021-07-21T18:46:57.391304347&#x27;, &#x27;2021-07-22T00:00:00.000000000&#x27;],\n",
       "      dtype=&#x27;datetime64[ns]&#x27;)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>level</span></div><div class='xr-var-dims'>(level)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1e+03 925.0 850.0 ... 400.0 300.0</div><input id='attrs-cf64202e-8fc7-4348-b1f4-c78ccb3a086e' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-cf64202e-8fc7-4348-b1f4-c78ccb3a086e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-dd44127c-cb26-45b8-bcd0-48226a4ff136' class='xr-var-data-in' type='checkbox'><label for='data-dd44127c-cb26-45b8-bcd0-48226a4ff136' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([1000.,  925.,  850.,  700.,  600.,  500.,  400.,  300.])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-abfc82d4-ad38-4b52-98e0-64be5e9d3858' class='xr-section-summary-in' type='checkbox'  checked><label for='section-abfc82d4-ad38-4b52-98e0-64be5e9d3858' class='xr-section-summary' >Data variables: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>rh</span></div><div class='xr-var-dims'>(level, time, lat, lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-0faaabd8-70fc-4037-bc38-35fc1e8b7ab3' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-0faaabd8-70fc-4037-bc38-35fc1e8b7ab3' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-7389b796-4d6c-4519-b805-33f0854c1e44' class='xr-var-data-in' type='checkbox'><label for='data-7389b796-4d6c-4519-b805-33f0854c1e44' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>[518592 values with dtype=float64]</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-8889a798-e679-42f9-96e2-0e1ebaa47344' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-8889a798-e679-42f9-96e2-0e1ebaa47344' class='xr-section-summary'  title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
      ],
      "text/plain": [
       "<xarray.Dataset>\n",
       "Dimensions:  (level: 8, time: 24, lat: 37, lon: 73)\n",
       "Coordinates:\n",
       "  * lon      (lon) float64 0.0 2.5 5.0 7.5 10.0 ... 172.5 175.0 177.5 180.0\n",
       "  * lat      (lat) float64 0.0 2.5 5.0 7.5 10.0 ... 80.0 82.5 85.0 87.5 90.0\n",
       "  * time     (time) datetime64[ns] 2021-07-17 ... 2021-07-22\n",
       "  * level    (level) float64 1e+03 925.0 850.0 700.0 600.0 500.0 400.0 300.0\n",
       "Data variables:\n",
       "    rh       (level, time, lat, lon) float64 ..."
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ds2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
       "<defs>\n",
       "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
       "<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
       "<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
       "<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
       "</symbol>\n",
       "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
       "<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
       "<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
       "<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
       "<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
       "</symbol>\n",
       "</defs>\n",
       "</svg>\n",
       "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
       " *\n",
       " */\n",
       "\n",
       ":root {\n",
       "  --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
       "  --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
       "  --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
       "  --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
       "  --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
       "  --xr-background-color: var(--jp-layout-color0, white);\n",
       "  --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
       "  --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
       "}\n",
       "\n",
       "html[theme=dark],\n",
       "body.vscode-dark {\n",
       "  --xr-font-color0: rgba(255, 255, 255, 1);\n",
       "  --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
       "  --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
       "  --xr-border-color: #1F1F1F;\n",
       "  --xr-disabled-color: #515151;\n",
       "  --xr-background-color: #111111;\n",
       "  --xr-background-color-row-even: #111111;\n",
       "  --xr-background-color-row-odd: #313131;\n",
       "}\n",
       "\n",
       ".xr-wrap {\n",
       "  display: block;\n",
       "  min-width: 300px;\n",
       "  max-width: 700px;\n",
       "}\n",
       "\n",
       ".xr-text-repr-fallback {\n",
       "  /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-header {\n",
       "  padding-top: 6px;\n",
       "  padding-bottom: 6px;\n",
       "  margin-bottom: 4px;\n",
       "  border-bottom: solid 1px var(--xr-border-color);\n",
       "}\n",
       "\n",
       ".xr-header > div,\n",
       ".xr-header > ul {\n",
       "  display: inline;\n",
       "  margin-top: 0;\n",
       "  margin-bottom: 0;\n",
       "}\n",
       "\n",
       ".xr-obj-type,\n",
       ".xr-array-name {\n",
       "  margin-left: 2px;\n",
       "  margin-right: 10px;\n",
       "}\n",
       "\n",
       ".xr-obj-type {\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-sections {\n",
       "  padding-left: 0 !important;\n",
       "  display: grid;\n",
       "  grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
       "}\n",
       "\n",
       ".xr-section-item {\n",
       "  display: contents;\n",
       "}\n",
       "\n",
       ".xr-section-item input {\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-section-item input + label {\n",
       "  color: var(--xr-disabled-color);\n",
       "}\n",
       "\n",
       ".xr-section-item input:enabled + label {\n",
       "  cursor: pointer;\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-section-item input:enabled + label:hover {\n",
       "  color: var(--xr-font-color0);\n",
       "}\n",
       "\n",
       ".xr-section-summary {\n",
       "  grid-column: 1;\n",
       "  color: var(--xr-font-color2);\n",
       "  font-weight: 500;\n",
       "}\n",
       "\n",
       ".xr-section-summary > span {\n",
       "  display: inline-block;\n",
       "  padding-left: 0.5em;\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:disabled + label {\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-section-summary-in + label:before {\n",
       "  display: inline-block;\n",
       "  content: '►';\n",
       "  font-size: 11px;\n",
       "  width: 15px;\n",
       "  text-align: center;\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:disabled + label:before {\n",
       "  color: var(--xr-disabled-color);\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:checked + label:before {\n",
       "  content: '▼';\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:checked + label > span {\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-section-summary,\n",
       ".xr-section-inline-details {\n",
       "  padding-top: 4px;\n",
       "  padding-bottom: 4px;\n",
       "}\n",
       "\n",
       ".xr-section-inline-details {\n",
       "  grid-column: 2 / -1;\n",
       "}\n",
       "\n",
       ".xr-section-details {\n",
       "  display: none;\n",
       "  grid-column: 1 / -1;\n",
       "  margin-bottom: 5px;\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:checked ~ .xr-section-details {\n",
       "  display: contents;\n",
       "}\n",
       "\n",
       ".xr-array-wrap {\n",
       "  grid-column: 1 / -1;\n",
       "  display: grid;\n",
       "  grid-template-columns: 20px auto;\n",
       "}\n",
       "\n",
       ".xr-array-wrap > label {\n",
       "  grid-column: 1;\n",
       "  vertical-align: top;\n",
       "}\n",
       "\n",
       ".xr-preview {\n",
       "  color: var(--xr-font-color3);\n",
       "}\n",
       "\n",
       ".xr-array-preview,\n",
       ".xr-array-data {\n",
       "  padding: 0 5px !important;\n",
       "  grid-column: 2;\n",
       "}\n",
       "\n",
       ".xr-array-data,\n",
       ".xr-array-in:checked ~ .xr-array-preview {\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-array-in:checked ~ .xr-array-data,\n",
       ".xr-array-preview {\n",
       "  display: inline-block;\n",
       "}\n",
       "\n",
       ".xr-dim-list {\n",
       "  display: inline-block !important;\n",
       "  list-style: none;\n",
       "  padding: 0 !important;\n",
       "  margin: 0;\n",
       "}\n",
       "\n",
       ".xr-dim-list li {\n",
       "  display: inline-block;\n",
       "  padding: 0;\n",
       "  margin: 0;\n",
       "}\n",
       "\n",
       ".xr-dim-list:before {\n",
       "  content: '(';\n",
       "}\n",
       "\n",
       ".xr-dim-list:after {\n",
       "  content: ')';\n",
       "}\n",
       "\n",
       ".xr-dim-list li:not(:last-child):after {\n",
       "  content: ',';\n",
       "  padding-right: 5px;\n",
       "}\n",
       "\n",
       ".xr-has-index {\n",
       "  font-weight: bold;\n",
       "}\n",
       "\n",
       ".xr-var-list,\n",
       ".xr-var-item {\n",
       "  display: contents;\n",
       "}\n",
       "\n",
       ".xr-var-item > div,\n",
       ".xr-var-item label,\n",
       ".xr-var-item > .xr-var-name span {\n",
       "  background-color: var(--xr-background-color-row-even);\n",
       "  margin-bottom: 0;\n",
       "}\n",
       "\n",
       ".xr-var-item > .xr-var-name:hover span {\n",
       "  padding-right: 5px;\n",
       "}\n",
       "\n",
       ".xr-var-list > li:nth-child(odd) > div,\n",
       ".xr-var-list > li:nth-child(odd) > label,\n",
       ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
       "  background-color: var(--xr-background-color-row-odd);\n",
       "}\n",
       "\n",
       ".xr-var-name {\n",
       "  grid-column: 1;\n",
       "}\n",
       "\n",
       ".xr-var-dims {\n",
       "  grid-column: 2;\n",
       "}\n",
       "\n",
       ".xr-var-dtype {\n",
       "  grid-column: 3;\n",
       "  text-align: right;\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-var-preview {\n",
       "  grid-column: 4;\n",
       "}\n",
       "\n",
       ".xr-var-name,\n",
       ".xr-var-dims,\n",
       ".xr-var-dtype,\n",
       ".xr-preview,\n",
       ".xr-attrs dt {\n",
       "  white-space: nowrap;\n",
       "  overflow: hidden;\n",
       "  text-overflow: ellipsis;\n",
       "  padding-right: 10px;\n",
       "}\n",
       "\n",
       ".xr-var-name:hover,\n",
       ".xr-var-dims:hover,\n",
       ".xr-var-dtype:hover,\n",
       ".xr-attrs dt:hover {\n",
       "  overflow: visible;\n",
       "  width: auto;\n",
       "  z-index: 1;\n",
       "}\n",
       "\n",
       ".xr-var-attrs,\n",
       ".xr-var-data {\n",
       "  display: none;\n",
       "  background-color: var(--xr-background-color) !important;\n",
       "  padding-bottom: 5px !important;\n",
       "}\n",
       "\n",
       ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
       ".xr-var-data-in:checked ~ .xr-var-data {\n",
       "  display: block;\n",
       "}\n",
       "\n",
       ".xr-var-data > table {\n",
       "  float: right;\n",
       "}\n",
       "\n",
       ".xr-var-name span,\n",
       ".xr-var-data,\n",
       ".xr-attrs {\n",
       "  padding-left: 25px !important;\n",
       "}\n",
       "\n",
       ".xr-attrs,\n",
       ".xr-var-attrs,\n",
       ".xr-var-data {\n",
       "  grid-column: 1 / -1;\n",
       "}\n",
       "\n",
       "dl.xr-attrs {\n",
       "  padding: 0;\n",
       "  margin: 0;\n",
       "  display: grid;\n",
       "  grid-template-columns: 125px auto;\n",
       "}\n",
       "\n",
       ".xr-attrs dt,\n",
       ".xr-attrs dd {\n",
       "  padding: 0;\n",
       "  margin: 0;\n",
       "  float: left;\n",
       "  padding-right: 10px;\n",
       "  width: auto;\n",
       "}\n",
       "\n",
       ".xr-attrs dt {\n",
       "  font-weight: normal;\n",
       "  grid-column: 1;\n",
       "}\n",
       "\n",
       ".xr-attrs dt:hover span {\n",
       "  display: inline-block;\n",
       "  background: var(--xr-background-color);\n",
       "  padding-right: 10px;\n",
       "}\n",
       "\n",
       ".xr-attrs dd {\n",
       "  grid-column: 2;\n",
       "  white-space: pre-wrap;\n",
       "  word-break: break-all;\n",
       "}\n",
       "\n",
       ".xr-icon-database,\n",
       ".xr-icon-file-text2 {\n",
       "  display: inline-block;\n",
       "  vertical-align: middle;\n",
       "  width: 1em;\n",
       "  height: 1.5em !important;\n",
       "  stroke-width: 0;\n",
       "  stroke: currentColor;\n",
       "  fill: currentColor;\n",
       "}\n",
       "</style><pre class='xr-text-repr-fallback'>&lt;xarray.DataArray &#x27;rh&#x27; (time: 24, lat: 37, lon: 73)&gt;\n",
       "array([[[86., 85., ..., 83., 85.],\n",
       "        [82., 79., ..., 78., 83.],\n",
       "        ...,\n",
       "        [99., 99., ..., 91., 91.],\n",
       "        [98., 98., ..., 98., 98.]],\n",
       "\n",
       "       [[90., 89., ..., 82., 83.],\n",
       "        [89., 84., ..., 77., 80.],\n",
       "        ...,\n",
       "        [98., 98., ..., 91., 92.],\n",
       "        [98., 98., ..., 98., 98.]],\n",
       "\n",
       "       ...,\n",
       "\n",
       "       [[90., 90., ..., 82., 83.],\n",
       "        [83., 83., ..., 81., 82.],\n",
       "        ...,\n",
       "        [94., 94., ..., 85., 85.],\n",
       "        [93., 93., ..., 93., 93.]],\n",
       "\n",
       "       [[92., 91., ..., 82., 84.],\n",
       "        [85., 86., ..., 85., 83.],\n",
       "        ...,\n",
       "        [93., 94., ..., 72., 73.],\n",
       "        [88., 88., ..., 88., 88.]]])\n",
       "Coordinates:\n",
       "  * lon      (lon) float64 0.0 2.5 5.0 7.5 10.0 ... 172.5 175.0 177.5 180.0\n",
       "  * lat      (lat) float64 0.0 2.5 5.0 7.5 10.0 ... 80.0 82.5 85.0 87.5 90.0\n",
       "  * time     (time) datetime64[ns] 2021-07-17 ... 2021-07-22\n",
       "    level    float64 1e+03</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'>'rh'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>time</span>: 24</li><li><span class='xr-has-index'>lat</span>: 37</li><li><span class='xr-has-index'>lon</span>: 73</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-ed80b847-5b28-4b9d-89f3-cbad04e6b7ba' class='xr-array-in' type='checkbox' checked><label for='section-ed80b847-5b28-4b9d-89f3-cbad04e6b7ba' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>86.0 85.0 84.0 84.0 97.0 98.0 97.0 ... 88.0 88.0 88.0 88.0 88.0 88.0</span></div><div class='xr-array-data'><pre>array([[[86., 85., ..., 83., 85.],\n",
       "        [82., 79., ..., 78., 83.],\n",
       "        ...,\n",
       "        [99., 99., ..., 91., 91.],\n",
       "        [98., 98., ..., 98., 98.]],\n",
       "\n",
       "       [[90., 89., ..., 82., 83.],\n",
       "        [89., 84., ..., 77., 80.],\n",
       "        ...,\n",
       "        [98., 98., ..., 91., 92.],\n",
       "        [98., 98., ..., 98., 98.]],\n",
       "\n",
       "       ...,\n",
       "\n",
       "       [[90., 90., ..., 82., 83.],\n",
       "        [83., 83., ..., 81., 82.],\n",
       "        ...,\n",
       "        [94., 94., ..., 85., 85.],\n",
       "        [93., 93., ..., 93., 93.]],\n",
       "\n",
       "       [[92., 91., ..., 82., 84.],\n",
       "        [85., 86., ..., 85., 83.],\n",
       "        ...,\n",
       "        [93., 94., ..., 72., 73.],\n",
       "        [88., 88., ..., 88., 88.]]])</pre></div></div></li><li class='xr-section-item'><input id='section-a3ab68cc-543c-4dfc-9c64-0ff50549eed4' class='xr-section-summary-in' type='checkbox'  checked><label for='section-a3ab68cc-543c-4dfc-9c64-0ff50549eed4' class='xr-section-summary' >Coordinates: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lon</span></div><div class='xr-var-dims'>(lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 2.5 5.0 ... 175.0 177.5 180.0</div><input id='attrs-c029a8bb-5949-47ad-9eb2-b6dd69c56347' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c029a8bb-5949-47ad-9eb2-b6dd69c56347' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-aa5f0262-9956-440d-b27d-a9d38bddd6c2' class='xr-var-data-in' type='checkbox'><label for='data-aa5f0262-9956-440d-b27d-a9d38bddd6c2' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([  0. ,   2.5,   5. ,   7.5,  10. ,  12.5,  15. ,  17.5,  20. ,  22.5,\n",
       "        25. ,  27.5,  30. ,  32.5,  35. ,  37.5,  40. ,  42.5,  45. ,  47.5,\n",
       "        50. ,  52.5,  55. ,  57.5,  60. ,  62.5,  65. ,  67.5,  70. ,  72.5,\n",
       "        75. ,  77.5,  80. ,  82.5,  85. ,  87.5,  90. ,  92.5,  95. ,  97.5,\n",
       "       100. , 102.5, 105. , 107.5, 110. , 112.5, 115. , 117.5, 120. , 122.5,\n",
       "       125. , 127.5, 130. , 132.5, 135. , 137.5, 140. , 142.5, 145. , 147.5,\n",
       "       150. , 152.5, 155. , 157.5, 160. , 162.5, 165. , 167.5, 170. , 172.5,\n",
       "       175. , 177.5, 180. ])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lat</span></div><div class='xr-var-dims'>(lat)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 2.5 5.0 7.5 ... 85.0 87.5 90.0</div><input id='attrs-9d81d5aa-129c-4368-a2eb-42adf1ace94f' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-9d81d5aa-129c-4368-a2eb-42adf1ace94f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6a4c93ae-6ffc-40c6-81d4-205a6fa0e7ef' class='xr-var-data-in' type='checkbox'><label for='data-6a4c93ae-6ffc-40c6-81d4-205a6fa0e7ef' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 0. ,  2.5,  5. ,  7.5, 10. , 12.5, 15. , 17.5, 20. , 22.5, 25. , 27.5,\n",
       "       30. , 32.5, 35. , 37.5, 40. , 42.5, 45. , 47.5, 50. , 52.5, 55. , 57.5,\n",
       "       60. , 62.5, 65. , 67.5, 70. , 72.5, 75. , 77.5, 80. , 82.5, 85. , 87.5,\n",
       "       90. ])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>2021-07-17 ... 2021-07-22</div><input id='attrs-c5378399-70ed-40ef-be88-3c3bea522026' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c5378399-70ed-40ef-be88-3c3bea522026' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-99334b1e-6fa2-4a56-8efa-aacb1fbe8112' class='xr-var-data-in' type='checkbox'><label for='data-99334b1e-6fa2-4a56-8efa-aacb1fbe8112' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([&#x27;2021-07-17T00:00:00.000000000&#x27;, &#x27;2021-07-17T05:13:02.608695652&#x27;,\n",
       "       &#x27;2021-07-17T10:26:05.217391304&#x27;, &#x27;2021-07-17T15:39:07.826086956&#x27;,\n",
       "       &#x27;2021-07-17T20:52:10.434782608&#x27;, &#x27;2021-07-18T02:05:13.043478260&#x27;,\n",
       "       &#x27;2021-07-18T07:18:15.652173913&#x27;, &#x27;2021-07-18T12:31:18.260869565&#x27;,\n",
       "       &#x27;2021-07-18T17:44:20.869565217&#x27;, &#x27;2021-07-18T22:57:23.478260869&#x27;,\n",
       "       &#x27;2021-07-19T04:10:26.086956521&#x27;, &#x27;2021-07-19T09:23:28.695652173&#x27;,\n",
       "       &#x27;2021-07-19T14:36:31.304347826&#x27;, &#x27;2021-07-19T19:49:33.913043478&#x27;,\n",
       "       &#x27;2021-07-20T01:02:36.521739130&#x27;, &#x27;2021-07-20T06:15:39.130434782&#x27;,\n",
       "       &#x27;2021-07-20T11:28:41.739130434&#x27;, &#x27;2021-07-20T16:41:44.347826087&#x27;,\n",
       "       &#x27;2021-07-20T21:54:46.956521739&#x27;, &#x27;2021-07-21T03:07:49.565217391&#x27;,\n",
       "       &#x27;2021-07-21T08:20:52.173913043&#x27;, &#x27;2021-07-21T13:33:54.782608695&#x27;,\n",
       "       &#x27;2021-07-21T18:46:57.391304347&#x27;, &#x27;2021-07-22T00:00:00.000000000&#x27;],\n",
       "      dtype=&#x27;datetime64[ns]&#x27;)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>level</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1e+03</div><input id='attrs-6b85b6e1-c137-4220-b670-3d72bfc0d5e3' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6b85b6e1-c137-4220-b670-3d72bfc0d5e3' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8a28c012-52ad-4800-8b54-888fc3cf56ae' class='xr-var-data-in' type='checkbox'><label for='data-8a28c012-52ad-4800-8b54-888fc3cf56ae' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(1000.)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-e6caff47-6324-417b-b3e7-d1e3e8061a88' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-e6caff47-6324-417b-b3e7-d1e3e8061a88' class='xr-section-summary'  title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
      ],
      "text/plain": [
       "<xarray.DataArray 'rh' (time: 24, lat: 37, lon: 73)>\n",
       "array([[[86., 85., ..., 83., 85.],\n",
       "        [82., 79., ..., 78., 83.],\n",
       "        ...,\n",
       "        [99., 99., ..., 91., 91.],\n",
       "        [98., 98., ..., 98., 98.]],\n",
       "\n",
       "       [[90., 89., ..., 82., 83.],\n",
       "        [89., 84., ..., 77., 80.],\n",
       "        ...,\n",
       "        [98., 98., ..., 91., 92.],\n",
       "        [98., 98., ..., 98., 98.]],\n",
       "\n",
       "       ...,\n",
       "\n",
       "       [[90., 90., ..., 82., 83.],\n",
       "        [83., 83., ..., 81., 82.],\n",
       "        ...,\n",
       "        [94., 94., ..., 85., 85.],\n",
       "        [93., 93., ..., 93., 93.]],\n",
       "\n",
       "       [[92., 91., ..., 82., 84.],\n",
       "        [85., 86., ..., 85., 83.],\n",
       "        ...,\n",
       "        [93., 94., ..., 72., 73.],\n",
       "        [88., 88., ..., 88., 88.]]])\n",
       "Coordinates:\n",
       "  * lon      (lon) float64 0.0 2.5 5.0 7.5 10.0 ... 172.5 175.0 177.5 180.0\n",
       "  * lat      (lat) float64 0.0 2.5 5.0 7.5 10.0 ... 80.0 82.5 85.0 87.5 90.0\n",
       "  * time     (time) datetime64[ns] 2021-07-17 ... 2021-07-22\n",
       "    level    float64 1e+03"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "RH = ds2['rh'][0, :, :, :]\n",
    "RH"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
       "<defs>\n",
       "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
       "<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
       "<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
       "<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
       "</symbol>\n",
       "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
       "<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
       "<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
       "<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
       "<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
       "</symbol>\n",
       "</defs>\n",
       "</svg>\n",
       "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
       " *\n",
       " */\n",
       "\n",
       ":root {\n",
       "  --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
       "  --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
       "  --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
       "  --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
       "  --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
       "  --xr-background-color: var(--jp-layout-color0, white);\n",
       "  --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
       "  --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
       "}\n",
       "\n",
       "html[theme=dark],\n",
       "body.vscode-dark {\n",
       "  --xr-font-color0: rgba(255, 255, 255, 1);\n",
       "  --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
       "  --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
       "  --xr-border-color: #1F1F1F;\n",
       "  --xr-disabled-color: #515151;\n",
       "  --xr-background-color: #111111;\n",
       "  --xr-background-color-row-even: #111111;\n",
       "  --xr-background-color-row-odd: #313131;\n",
       "}\n",
       "\n",
       ".xr-wrap {\n",
       "  display: block;\n",
       "  min-width: 300px;\n",
       "  max-width: 700px;\n",
       "}\n",
       "\n",
       ".xr-text-repr-fallback {\n",
       "  /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-header {\n",
       "  padding-top: 6px;\n",
       "  padding-bottom: 6px;\n",
       "  margin-bottom: 4px;\n",
       "  border-bottom: solid 1px var(--xr-border-color);\n",
       "}\n",
       "\n",
       ".xr-header > div,\n",
       ".xr-header > ul {\n",
       "  display: inline;\n",
       "  margin-top: 0;\n",
       "  margin-bottom: 0;\n",
       "}\n",
       "\n",
       ".xr-obj-type,\n",
       ".xr-array-name {\n",
       "  margin-left: 2px;\n",
       "  margin-right: 10px;\n",
       "}\n",
       "\n",
       ".xr-obj-type {\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-sections {\n",
       "  padding-left: 0 !important;\n",
       "  display: grid;\n",
       "  grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
       "}\n",
       "\n",
       ".xr-section-item {\n",
       "  display: contents;\n",
       "}\n",
       "\n",
       ".xr-section-item input {\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-section-item input + label {\n",
       "  color: var(--xr-disabled-color);\n",
       "}\n",
       "\n",
       ".xr-section-item input:enabled + label {\n",
       "  cursor: pointer;\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-section-item input:enabled + label:hover {\n",
       "  color: var(--xr-font-color0);\n",
       "}\n",
       "\n",
       ".xr-section-summary {\n",
       "  grid-column: 1;\n",
       "  color: var(--xr-font-color2);\n",
       "  font-weight: 500;\n",
       "}\n",
       "\n",
       ".xr-section-summary > span {\n",
       "  display: inline-block;\n",
       "  padding-left: 0.5em;\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:disabled + label {\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-section-summary-in + label:before {\n",
       "  display: inline-block;\n",
       "  content: '►';\n",
       "  font-size: 11px;\n",
       "  width: 15px;\n",
       "  text-align: center;\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:disabled + label:before {\n",
       "  color: var(--xr-disabled-color);\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:checked + label:before {\n",
       "  content: '▼';\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:checked + label > span {\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-section-summary,\n",
       ".xr-section-inline-details {\n",
       "  padding-top: 4px;\n",
       "  padding-bottom: 4px;\n",
       "}\n",
       "\n",
       ".xr-section-inline-details {\n",
       "  grid-column: 2 / -1;\n",
       "}\n",
       "\n",
       ".xr-section-details {\n",
       "  display: none;\n",
       "  grid-column: 1 / -1;\n",
       "  margin-bottom: 5px;\n",
       "}\n",
       "\n",
       ".xr-section-summary-in:checked ~ .xr-section-details {\n",
       "  display: contents;\n",
       "}\n",
       "\n",
       ".xr-array-wrap {\n",
       "  grid-column: 1 / -1;\n",
       "  display: grid;\n",
       "  grid-template-columns: 20px auto;\n",
       "}\n",
       "\n",
       ".xr-array-wrap > label {\n",
       "  grid-column: 1;\n",
       "  vertical-align: top;\n",
       "}\n",
       "\n",
       ".xr-preview {\n",
       "  color: var(--xr-font-color3);\n",
       "}\n",
       "\n",
       ".xr-array-preview,\n",
       ".xr-array-data {\n",
       "  padding: 0 5px !important;\n",
       "  grid-column: 2;\n",
       "}\n",
       "\n",
       ".xr-array-data,\n",
       ".xr-array-in:checked ~ .xr-array-preview {\n",
       "  display: none;\n",
       "}\n",
       "\n",
       ".xr-array-in:checked ~ .xr-array-data,\n",
       ".xr-array-preview {\n",
       "  display: inline-block;\n",
       "}\n",
       "\n",
       ".xr-dim-list {\n",
       "  display: inline-block !important;\n",
       "  list-style: none;\n",
       "  padding: 0 !important;\n",
       "  margin: 0;\n",
       "}\n",
       "\n",
       ".xr-dim-list li {\n",
       "  display: inline-block;\n",
       "  padding: 0;\n",
       "  margin: 0;\n",
       "}\n",
       "\n",
       ".xr-dim-list:before {\n",
       "  content: '(';\n",
       "}\n",
       "\n",
       ".xr-dim-list:after {\n",
       "  content: ')';\n",
       "}\n",
       "\n",
       ".xr-dim-list li:not(:last-child):after {\n",
       "  content: ',';\n",
       "  padding-right: 5px;\n",
       "}\n",
       "\n",
       ".xr-has-index {\n",
       "  font-weight: bold;\n",
       "}\n",
       "\n",
       ".xr-var-list,\n",
       ".xr-var-item {\n",
       "  display: contents;\n",
       "}\n",
       "\n",
       ".xr-var-item > div,\n",
       ".xr-var-item label,\n",
       ".xr-var-item > .xr-var-name span {\n",
       "  background-color: var(--xr-background-color-row-even);\n",
       "  margin-bottom: 0;\n",
       "}\n",
       "\n",
       ".xr-var-item > .xr-var-name:hover span {\n",
       "  padding-right: 5px;\n",
       "}\n",
       "\n",
       ".xr-var-list > li:nth-child(odd) > div,\n",
       ".xr-var-list > li:nth-child(odd) > label,\n",
       ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
       "  background-color: var(--xr-background-color-row-odd);\n",
       "}\n",
       "\n",
       ".xr-var-name {\n",
       "  grid-column: 1;\n",
       "}\n",
       "\n",
       ".xr-var-dims {\n",
       "  grid-column: 2;\n",
       "}\n",
       "\n",
       ".xr-var-dtype {\n",
       "  grid-column: 3;\n",
       "  text-align: right;\n",
       "  color: var(--xr-font-color2);\n",
       "}\n",
       "\n",
       ".xr-var-preview {\n",
       "  grid-column: 4;\n",
       "}\n",
       "\n",
       ".xr-var-name,\n",
       ".xr-var-dims,\n",
       ".xr-var-dtype,\n",
       ".xr-preview,\n",
       ".xr-attrs dt {\n",
       "  white-space: nowrap;\n",
       "  overflow: hidden;\n",
       "  text-overflow: ellipsis;\n",
       "  padding-right: 10px;\n",
       "}\n",
       "\n",
       ".xr-var-name:hover,\n",
       ".xr-var-dims:hover,\n",
       ".xr-var-dtype:hover,\n",
       ".xr-attrs dt:hover {\n",
       "  overflow: visible;\n",
       "  width: auto;\n",
       "  z-index: 1;\n",
       "}\n",
       "\n",
       ".xr-var-attrs,\n",
       ".xr-var-data {\n",
       "  display: none;\n",
       "  background-color: var(--xr-background-color) !important;\n",
       "  padding-bottom: 5px !important;\n",
       "}\n",
       "\n",
       ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
       ".xr-var-data-in:checked ~ .xr-var-data {\n",
       "  display: block;\n",
       "}\n",
       "\n",
       ".xr-var-data > table {\n",
       "  float: right;\n",
       "}\n",
       "\n",
       ".xr-var-name span,\n",
       ".xr-var-data,\n",
       ".xr-attrs {\n",
       "  padding-left: 25px !important;\n",
       "}\n",
       "\n",
       ".xr-attrs,\n",
       ".xr-var-attrs,\n",
       ".xr-var-data {\n",
       "  grid-column: 1 / -1;\n",
       "}\n",
       "\n",
       "dl.xr-attrs {\n",
       "  padding: 0;\n",
       "  margin: 0;\n",
       "  display: grid;\n",
       "  grid-template-columns: 125px auto;\n",
       "}\n",
       "\n",
       ".xr-attrs dt,\n",
       ".xr-attrs dd {\n",
       "  padding: 0;\n",
       "  margin: 0;\n",
       "  float: left;\n",
       "  padding-right: 10px;\n",
       "  width: auto;\n",
       "}\n",
       "\n",
       ".xr-attrs dt {\n",
       "  font-weight: normal;\n",
       "  grid-column: 1;\n",
       "}\n",
       "\n",
       ".xr-attrs dt:hover span {\n",
       "  display: inline-block;\n",
       "  background: var(--xr-background-color);\n",
       "  padding-right: 10px;\n",
       "}\n",
       "\n",
       ".xr-attrs dd {\n",
       "  grid-column: 2;\n",
       "  white-space: pre-wrap;\n",
       "  word-break: break-all;\n",
       "}\n",
       "\n",
       ".xr-icon-database,\n",
       ".xr-icon-file-text2 {\n",
       "  display: inline-block;\n",
       "  vertical-align: middle;\n",
       "  width: 1em;\n",
       "  height: 1.5em !important;\n",
       "  stroke-width: 0;\n",
       "  stroke: currentColor;\n",
       "  fill: currentColor;\n",
       "}\n",
       "</style><pre class='xr-text-repr-fallback'>&lt;xarray.DataArray &#x27;t&#x27; (time: 24, lat: 37, lon: 73)&gt;\n",
       "array([[[298.3, 298. , 297.3, ..., 300.9, 300.5, 300.2],\n",
       "        [298.3, 298.3, 298.2, ..., 301.1, 300.9, 300.5],\n",
       "        [297.7, 297.6, 297.9, ..., 301.4, 301.4, 301. ],\n",
       "        ...,\n",
       "        [277.2, 277.2, 277.2, ..., 277.2, 277.2, 277.2],\n",
       "        [276.8, 276.8, 276.8, ..., 277.2, 277.2, 277.1],\n",
       "        [276.8, 276.8, 276.8, ..., 276.8, 276.8, 276.8]],\n",
       "\n",
       "       [[297.4, 297.2, 296.9, ..., 300.9, 300.7, 300.4],\n",
       "        [297.8, 297.9, 298.1, ..., 301.3, 301.2, 300.9],\n",
       "        [297.5, 297.3, 297.3, ..., 301.8, 301.8, 301.4],\n",
       "        ...,\n",
       "        [276.8, 276.8, 276.8, ..., 276.7, 276.7, 276.7],\n",
       "        [276.5, 276.5, 276.5, ..., 276.9, 276.8, 276.8],\n",
       "        [276.6, 276.6, 276.6, ..., 276.6, 276.6, 276.6]],\n",
       "\n",
       "       [[297. , 296.8, 297.1, ..., 300.2, 300.1, 300. ],\n",
       "        [297.6, 297.3, 297.5, ..., 300.9, 300.7, 300.3],\n",
       "        [298. , 297.7, 297.7, ..., 301.3, 301. , 300.6],\n",
       "        ...,\n",
       "...\n",
       "        ...,\n",
       "        [275. , 275. , 275. , ..., 276.7, 276.6, 276.4],\n",
       "        [274.7, 274.7, 274.8, ..., 275.8, 275.7, 275.6],\n",
       "        [275. , 275. , 275. , ..., 275. , 275. , 275. ]],\n",
       "\n",
       "       [[296.4, 296.8, 296.9, ..., 300.6, 300.4, 300.4],\n",
       "        [297.6, 297.6, 297.6, ..., 300.8, 300.6, 300.5],\n",
       "        [298. , 297.8, 298. , ..., 300.7, 300.5, 300.3],\n",
       "        ...,\n",
       "        [276.3, 276.4, 276.4, ..., 277.2, 276.9, 276.7],\n",
       "        [275.8, 275.8, 275.8, ..., 276.5, 276.3, 276.2],\n",
       "        [275.8, 275.8, 275.8, ..., 275.8, 275.8, 275.8]],\n",
       "\n",
       "       [[296.3, 296.6, 297. , ..., 300.2, 299.8, 299.6],\n",
       "        [297.6, 297.7, 297.9, ..., 300. , 300. , 300.1],\n",
       "        [298.4, 298.1, 298.1, ..., 300. , 300.3, 300.4],\n",
       "        ...,\n",
       "        [276. , 276. , 275.9, ..., 278.5, 278.3, 278.2],\n",
       "        [276.5, 276.5, 276.5, ..., 278.2, 278.1, 278. ],\n",
       "        [277.4, 277.4, 277.4, ..., 277.4, 277.4, 277.4]]])\n",
       "Coordinates:\n",
       "  * lon      (lon) float64 0.0 2.5 5.0 7.5 10.0 ... 172.5 175.0 177.5 180.0\n",
       "  * lat      (lat) float64 0.0 2.5 5.0 7.5 10.0 ... 80.0 82.5 85.0 87.5 90.0\n",
       "  * time     (time) datetime64[ns] 2021-07-17 ... 2021-07-22\n",
       "    level    float64 1e+03</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'>'t'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>time</span>: 24</li><li><span class='xr-has-index'>lat</span>: 37</li><li><span class='xr-has-index'>lon</span>: 73</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-3c701452-118b-410b-befd-ff396c111a80' class='xr-array-in' type='checkbox' checked><label for='section-3c701452-118b-410b-befd-ff396c111a80' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>298.3 298.0 297.3 296.8 296.6 296.8 ... 277.4 277.4 277.4 277.4 277.4</span></div><div class='xr-array-data'><pre>array([[[298.3, 298. , 297.3, ..., 300.9, 300.5, 300.2],\n",
       "        [298.3, 298.3, 298.2, ..., 301.1, 300.9, 300.5],\n",
       "        [297.7, 297.6, 297.9, ..., 301.4, 301.4, 301. ],\n",
       "        ...,\n",
       "        [277.2, 277.2, 277.2, ..., 277.2, 277.2, 277.2],\n",
       "        [276.8, 276.8, 276.8, ..., 277.2, 277.2, 277.1],\n",
       "        [276.8, 276.8, 276.8, ..., 276.8, 276.8, 276.8]],\n",
       "\n",
       "       [[297.4, 297.2, 296.9, ..., 300.9, 300.7, 300.4],\n",
       "        [297.8, 297.9, 298.1, ..., 301.3, 301.2, 300.9],\n",
       "        [297.5, 297.3, 297.3, ..., 301.8, 301.8, 301.4],\n",
       "        ...,\n",
       "        [276.8, 276.8, 276.8, ..., 276.7, 276.7, 276.7],\n",
       "        [276.5, 276.5, 276.5, ..., 276.9, 276.8, 276.8],\n",
       "        [276.6, 276.6, 276.6, ..., 276.6, 276.6, 276.6]],\n",
       "\n",
       "       [[297. , 296.8, 297.1, ..., 300.2, 300.1, 300. ],\n",
       "        [297.6, 297.3, 297.5, ..., 300.9, 300.7, 300.3],\n",
       "        [298. , 297.7, 297.7, ..., 301.3, 301. , 300.6],\n",
       "        ...,\n",
       "...\n",
       "        ...,\n",
       "        [275. , 275. , 275. , ..., 276.7, 276.6, 276.4],\n",
       "        [274.7, 274.7, 274.8, ..., 275.8, 275.7, 275.6],\n",
       "        [275. , 275. , 275. , ..., 275. , 275. , 275. ]],\n",
       "\n",
       "       [[296.4, 296.8, 296.9, ..., 300.6, 300.4, 300.4],\n",
       "        [297.6, 297.6, 297.6, ..., 300.8, 300.6, 300.5],\n",
       "        [298. , 297.8, 298. , ..., 300.7, 300.5, 300.3],\n",
       "        ...,\n",
       "        [276.3, 276.4, 276.4, ..., 277.2, 276.9, 276.7],\n",
       "        [275.8, 275.8, 275.8, ..., 276.5, 276.3, 276.2],\n",
       "        [275.8, 275.8, 275.8, ..., 275.8, 275.8, 275.8]],\n",
       "\n",
       "       [[296.3, 296.6, 297. , ..., 300.2, 299.8, 299.6],\n",
       "        [297.6, 297.7, 297.9, ..., 300. , 300. , 300.1],\n",
       "        [298.4, 298.1, 298.1, ..., 300. , 300.3, 300.4],\n",
       "        ...,\n",
       "        [276. , 276. , 275.9, ..., 278.5, 278.3, 278.2],\n",
       "        [276.5, 276.5, 276.5, ..., 278.2, 278.1, 278. ],\n",
       "        [277.4, 277.4, 277.4, ..., 277.4, 277.4, 277.4]]])</pre></div></div></li><li class='xr-section-item'><input id='section-75f17ccc-f7f6-4de8-9b6c-6d1754a3a206' class='xr-section-summary-in' type='checkbox'  checked><label for='section-75f17ccc-f7f6-4de8-9b6c-6d1754a3a206' class='xr-section-summary' >Coordinates: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lon</span></div><div class='xr-var-dims'>(lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 2.5 5.0 ... 175.0 177.5 180.0</div><input id='attrs-5630a412-6f0c-4a00-9abd-57cc1b05cce8' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-5630a412-6f0c-4a00-9abd-57cc1b05cce8' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-df4a3db6-3dfb-4c74-a05b-d23bfd0d700d' class='xr-var-data-in' type='checkbox'><label for='data-df4a3db6-3dfb-4c74-a05b-d23bfd0d700d' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([  0. ,   2.5,   5. ,   7.5,  10. ,  12.5,  15. ,  17.5,  20. ,  22.5,\n",
       "        25. ,  27.5,  30. ,  32.5,  35. ,  37.5,  40. ,  42.5,  45. ,  47.5,\n",
       "        50. ,  52.5,  55. ,  57.5,  60. ,  62.5,  65. ,  67.5,  70. ,  72.5,\n",
       "        75. ,  77.5,  80. ,  82.5,  85. ,  87.5,  90. ,  92.5,  95. ,  97.5,\n",
       "       100. , 102.5, 105. , 107.5, 110. , 112.5, 115. , 117.5, 120. , 122.5,\n",
       "       125. , 127.5, 130. , 132.5, 135. , 137.5, 140. , 142.5, 145. , 147.5,\n",
       "       150. , 152.5, 155. , 157.5, 160. , 162.5, 165. , 167.5, 170. , 172.5,\n",
       "       175. , 177.5, 180. ])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lat</span></div><div class='xr-var-dims'>(lat)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 2.5 5.0 7.5 ... 85.0 87.5 90.0</div><input id='attrs-b4c47613-a31f-4180-bac4-8bcf75defe80' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-b4c47613-a31f-4180-bac4-8bcf75defe80' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-1d13c8a2-bc48-4859-894f-f38aef3a57c6' class='xr-var-data-in' type='checkbox'><label for='data-1d13c8a2-bc48-4859-894f-f38aef3a57c6' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 0. ,  2.5,  5. ,  7.5, 10. , 12.5, 15. , 17.5, 20. , 22.5, 25. , 27.5,\n",
       "       30. , 32.5, 35. , 37.5, 40. , 42.5, 45. , 47.5, 50. , 52.5, 55. , 57.5,\n",
       "       60. , 62.5, 65. , 67.5, 70. , 72.5, 75. , 77.5, 80. , 82.5, 85. , 87.5,\n",
       "       90. ])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>2021-07-17 ... 2021-07-22</div><input id='attrs-e8eef241-075b-4d75-ac7c-2df379fac89f' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-e8eef241-075b-4d75-ac7c-2df379fac89f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8346bf48-2427-403f-8ed9-adda5e0fa69c' class='xr-var-data-in' type='checkbox'><label for='data-8346bf48-2427-403f-8ed9-adda5e0fa69c' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([&#x27;2021-07-17T00:00:00.000000000&#x27;, &#x27;2021-07-17T05:13:02.608695652&#x27;,\n",
       "       &#x27;2021-07-17T10:26:05.217391304&#x27;, &#x27;2021-07-17T15:39:07.826086956&#x27;,\n",
       "       &#x27;2021-07-17T20:52:10.434782608&#x27;, &#x27;2021-07-18T02:05:13.043478260&#x27;,\n",
       "       &#x27;2021-07-18T07:18:15.652173913&#x27;, &#x27;2021-07-18T12:31:18.260869565&#x27;,\n",
       "       &#x27;2021-07-18T17:44:20.869565217&#x27;, &#x27;2021-07-18T22:57:23.478260869&#x27;,\n",
       "       &#x27;2021-07-19T04:10:26.086956521&#x27;, &#x27;2021-07-19T09:23:28.695652173&#x27;,\n",
       "       &#x27;2021-07-19T14:36:31.304347826&#x27;, &#x27;2021-07-19T19:49:33.913043478&#x27;,\n",
       "       &#x27;2021-07-20T01:02:36.521739130&#x27;, &#x27;2021-07-20T06:15:39.130434782&#x27;,\n",
       "       &#x27;2021-07-20T11:28:41.739130434&#x27;, &#x27;2021-07-20T16:41:44.347826087&#x27;,\n",
       "       &#x27;2021-07-20T21:54:46.956521739&#x27;, &#x27;2021-07-21T03:07:49.565217391&#x27;,\n",
       "       &#x27;2021-07-21T08:20:52.173913043&#x27;, &#x27;2021-07-21T13:33:54.782608695&#x27;,\n",
       "       &#x27;2021-07-21T18:46:57.391304347&#x27;, &#x27;2021-07-22T00:00:00.000000000&#x27;],\n",
       "      dtype=&#x27;datetime64[ns]&#x27;)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>level</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1e+03</div><input id='attrs-4d967567-18a1-436a-8917-0cb38207489e' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-4d967567-18a1-436a-8917-0cb38207489e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-85250315-f5cb-44c2-9388-9a95d1ee8f6a' class='xr-var-data-in' type='checkbox'><label for='data-85250315-f5cb-44c2-9388-9a95d1ee8f6a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(1000.)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-9e78d9b3-04f5-407c-85e7-2afd77d5f4b2' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-9e78d9b3-04f5-407c-85e7-2afd77d5f4b2' class='xr-section-summary'  title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
      ],
      "text/plain": [
       "<xarray.DataArray 't' (time: 24, lat: 37, lon: 73)>\n",
       "array([[[298.3, 298. , 297.3, ..., 300.9, 300.5, 300.2],\n",
       "        [298.3, 298.3, 298.2, ..., 301.1, 300.9, 300.5],\n",
       "        [297.7, 297.6, 297.9, ..., 301.4, 301.4, 301. ],\n",
       "        ...,\n",
       "        [277.2, 277.2, 277.2, ..., 277.2, 277.2, 277.2],\n",
       "        [276.8, 276.8, 276.8, ..., 277.2, 277.2, 277.1],\n",
       "        [276.8, 276.8, 276.8, ..., 276.8, 276.8, 276.8]],\n",
       "\n",
       "       [[297.4, 297.2, 296.9, ..., 300.9, 300.7, 300.4],\n",
       "        [297.8, 297.9, 298.1, ..., 301.3, 301.2, 300.9],\n",
       "        [297.5, 297.3, 297.3, ..., 301.8, 301.8, 301.4],\n",
       "        ...,\n",
       "        [276.8, 276.8, 276.8, ..., 276.7, 276.7, 276.7],\n",
       "        [276.5, 276.5, 276.5, ..., 276.9, 276.8, 276.8],\n",
       "        [276.6, 276.6, 276.6, ..., 276.6, 276.6, 276.6]],\n",
       "\n",
       "       [[297. , 296.8, 297.1, ..., 300.2, 300.1, 300. ],\n",
       "        [297.6, 297.3, 297.5, ..., 300.9, 300.7, 300.3],\n",
       "        [298. , 297.7, 297.7, ..., 301.3, 301. , 300.6],\n",
       "        ...,\n",
       "...\n",
       "        ...,\n",
       "        [275. , 275. , 275. , ..., 276.7, 276.6, 276.4],\n",
       "        [274.7, 274.7, 274.8, ..., 275.8, 275.7, 275.6],\n",
       "        [275. , 275. , 275. , ..., 275. , 275. , 275. ]],\n",
       "\n",
       "       [[296.4, 296.8, 296.9, ..., 300.6, 300.4, 300.4],\n",
       "        [297.6, 297.6, 297.6, ..., 300.8, 300.6, 300.5],\n",
       "        [298. , 297.8, 298. , ..., 300.7, 300.5, 300.3],\n",
       "        ...,\n",
       "        [276.3, 276.4, 276.4, ..., 277.2, 276.9, 276.7],\n",
       "        [275.8, 275.8, 275.8, ..., 276.5, 276.3, 276.2],\n",
       "        [275.8, 275.8, 275.8, ..., 275.8, 275.8, 275.8]],\n",
       "\n",
       "       [[296.3, 296.6, 297. , ..., 300.2, 299.8, 299.6],\n",
       "        [297.6, 297.7, 297.9, ..., 300. , 300. , 300.1],\n",
       "        [298.4, 298.1, 298.1, ..., 300. , 300.3, 300.4],\n",
       "        ...,\n",
       "        [276. , 276. , 275.9, ..., 278.5, 278.3, 278.2],\n",
       "        [276.5, 276.5, 276.5, ..., 278.2, 278.1, 278. ],\n",
       "        [277.4, 277.4, 277.4, ..., 277.4, 277.4, 277.4]]])\n",
       "Coordinates:\n",
       "  * lon      (lon) float64 0.0 2.5 5.0 7.5 10.0 ... 172.5 175.0 177.5 180.0\n",
       "  * lat      (lat) float64 0.0 2.5 5.0 7.5 10.0 ... 80.0 82.5 85.0 87.5 90.0\n",
       "  * time     (time) datetime64[ns] 2021-07-17 ... 2021-07-22\n",
       "    level    float64 1e+03"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "T = ds1[\"t\"][0, :, :, :]\n",
    "T=T+273.16\n",
    "T"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "def TDcompute(RH, T):\n",
    "    import numpy as np\n",
    "    es = np.zeros((RH.shape[0], RH.shape[1], RH.shape[2]))\n",
    "    Td = np.zeros((RH.shape[0], RH.shape[1], RH.shape[2]))\n",
    "    Ttemp = T\n",
    "    a = 17.2693882\n",
    "    b = 35.86\n",
    "    es = 6.1078 * np.exp(a * (T - 273.16) / (T - b))\n",
    "    e = es * RH / 100\n",
    "    for t_i in range(RH.shape[0]):\n",
    "        for i in range(RH.shape[1]):\n",
    "            for j in range(RH.shape[2]):\n",
    "                while e[t_i, i, j] < es[t_i, i, j]:\n",
    "                    Ttemp[t_i, i, j] = Ttemp[t_i, i, j] - 0.05\n",
    "                    es[t_i, i, j] = 6.1078 * \\\n",
    "                        np.exp(a * (Ttemp[t_i, i, j] -\n",
    "                               273.16) / (Ttemp[t_i, i, j] - b))\n",
    "                Td[t_i, i, j] = Ttemp[t_i, i, j]\n",
    "    return Td\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Wall time: 33.4 s\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "array([[[295.75, 295.3 , 294.4 , ..., 297.9 , 297.35, 297.45],\n",
       "        [295.  , 294.35, 294.7 , ..., 297.1 , 296.7 , 297.35],\n",
       "        [295.2 , 295.65, 296.5 , ..., 296.95, 296.75, 297.6 ],\n",
       "        ...,\n",
       "        [276.3 , 276.45, 276.45, ..., 277.05, 277.05, 277.05],\n",
       "        [276.65, 276.65, 276.65, ..., 275.85, 275.85, 275.75],\n",
       "        [276.5 , 276.5 , 276.5 , ..., 276.5 , 276.5 , 276.5 ]],\n",
       "\n",
       "       [[295.65, 295.25, 294.75, ..., 297.7 , 297.3 , 297.25],\n",
       "        [295.85, 295.  , 295.55, ..., 296.2 , 296.75, 297.1 ],\n",
       "        [295.35, 295.9 , 296.4 , ..., 296.  , 296.2 , 297.6 ],\n",
       "        ...,\n",
       "        [275.75, 275.75, 275.75, ..., 276.4 , 276.4 , 276.55],\n",
       "        [276.2 , 276.2 , 276.2 , ..., 275.55, 275.45, 275.6 ],\n",
       "        [276.3 , 276.3 , 276.3 , ..., 276.3 , 276.3 , 276.3 ]],\n",
       "\n",
       "       [[294.85, 294.85, 294.6 , ..., 296.85, 297.35, 298.  ],\n",
       "        [295.65, 294.2 , 295.  , ..., 297.1 , 297.1 , 297.35],\n",
       "        [296.75, 296.3 , 297.5 , ..., 297.05, 297.4 , 297.8 ],\n",
       "        ...,\n",
       "        [276.5 , 276.35, 276.35, ..., 275.8 , 275.8 , 275.85],\n",
       "        [275.6 , 275.7 , 275.55, ..., 276.2 , 276.1 , 276.  ],\n",
       "        [275.6 , 275.6 , 275.6 , ..., 275.6 , 275.6 , 275.6 ]],\n",
       "\n",
       "       ...,\n",
       "\n",
       "       [[295.4 , 295.25, 293.8 , ..., 297.5 , 297.2 , 297.1 ],\n",
       "        [295.35, 295.1 , 295.25, ..., 296.9 , 297.25, 296.75],\n",
       "        [295.65, 296.15, 296.5 , ..., 297.05, 297.05, 296.75],\n",
       "        ...,\n",
       "        [274.25, 274.4 , 274.4 , ..., 273.4 , 273.3 , 273.1 ],\n",
       "        [274.4 , 274.4 , 274.5 , ..., 274.45, 274.35, 274.4 ],\n",
       "        [274.4 , 274.4 , 274.4 , ..., 274.4 , 274.4 , 274.4 ]],\n",
       "\n",
       "       [[294.65, 295.05, 293.6 , ..., 297.65, 297.05, 297.25],\n",
       "        [294.5 , 294.5 , 295.65, ..., 297.2 , 297.  , 297.15],\n",
       "        [296.95, 296.9 , 297.45, ..., 296.7 , 297.15, 297.35],\n",
       "        ...,\n",
       "        [274.65, 274.9 , 274.9 , ..., 272.8 , 272.5 , 272.5 ],\n",
       "        [274.9 , 274.9 , 274.9 , ..., 274.05, 274.  , 273.9 ],\n",
       "        [274.75, 274.75, 274.75, ..., 274.75, 274.75, 274.75]],\n",
       "\n",
       "       [[294.9 , 295.  , 293.3 , ..., 297.45, 296.45, 296.65],\n",
       "        [294.9 , 295.2 , 295.55, ..., 297.25, 297.25, 296.95],\n",
       "        [297.  , 296.7 , 297.4 , ..., 297.45, 297.9 , 297.65],\n",
       "        ...,\n",
       "        [274.2 , 274.2 , 274.25, ..., 272.45, 272.25, 272.55],\n",
       "        [275.45, 275.6 , 275.6 , ..., 273.55, 273.45, 273.55],\n",
       "        [275.55, 275.55, 275.55, ..., 275.55, 275.55, 275.55]]])"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "%time TDcompute(RH.data,T.data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Wall time: 29.5 s\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "array([[[293.25, 292.65, 291.55, ..., 295.  , 294.25, 294.75],\n",
       "        [291.75, 290.55, 291.3 , ..., 293.2 , 292.6 , 294.25],\n",
       "        [292.7 , 293.7 , 295.1 , ..., 292.65, 292.25, 294.3 ],\n",
       "        ...,\n",
       "        [275.4 , 275.7 , 275.7 , ..., 276.9 , 276.9 , 276.9 ],\n",
       "        [276.5 , 276.5 , 276.5 , ..., 274.5 , 274.5 , 274.4 ],\n",
       "        [276.2 , 276.2 , 276.2 , ..., 276.2 , 276.2 , 276.2 ]],\n",
       "\n",
       "       [[293.9 , 293.35, 292.65, ..., 294.6 , 294.  , 294.15],\n",
       "        [293.9 , 292.15, 293.05, ..., 291.3 , 292.45, 293.4 ],\n",
       "        [293.25, 294.5 , 295.55, ..., 290.45, 290.85, 293.9 ],\n",
       "        ...,\n",
       "        [274.7 , 274.7 , 274.7 , ..., 276.1 , 276.1 , 276.4 ],\n",
       "        [275.9 , 275.9 , 275.9 , ..., 274.2 , 274.1 , 274.4 ],\n",
       "        [276.  , 276.  , 276.  , ..., 276.  , 276.  , 276.  ]],\n",
       "\n",
       "       [[292.75, 292.95, 292.15, ..., 293.55, 294.65, 296.05],\n",
       "        [293.7 , 291.2 , 292.55, ..., 293.4 , 293.6 , 294.45],\n",
       "        [295.55, 294.9 , 297.3 , ..., 292.95, 293.9 , 295.1 ],\n",
       "        ...,\n",
       "        [275.9 , 275.6 , 275.6 , ..., 275.5 , 275.5 , 275.7 ],\n",
       "        [275.  , 275.1 , 274.8 , ..., 276.2 , 276.1 , 276.  ],\n",
       "        [275.3 , 275.3 , 275.3 , ..., 275.3 , 275.3 , 275.3 ]],\n",
       "\n",
       "       ...,\n",
       "\n",
       "       [[294.  , 293.5 , 290.8 , ..., 293.6 , 293.3 , 293.4 ],\n",
       "        [293.25, 292.6 , 293.15, ..., 292.2 , 293.15, 292.45],\n",
       "        [293.9 , 294.95, 295.65, ..., 292.55, 292.75, 292.45],\n",
       "        ...,\n",
       "        [273.5 , 273.8 , 273.8 , ..., 270.15, 270.1 , 269.9 ],\n",
       "        [274.1 , 274.1 , 274.2 , ..., 273.1 , 273.  , 273.2 ],\n",
       "        [273.8 , 273.8 , 273.8 , ..., 273.8 , 273.8 , 273.8 ]],\n",
       "\n",
       "       [[292.9 , 293.3 , 290.4 , ..., 294.75, 293.75, 294.15],\n",
       "        [291.45, 291.45, 293.7 , ..., 293.7 , 293.5 , 293.85],\n",
       "        [295.9 , 296.  , 296.9 , ..., 292.8 , 293.85, 294.45],\n",
       "        ...,\n",
       "        [273.  , 273.4 , 273.4 , ..., 268.55, 268.25, 268.45],\n",
       "        [274.  , 274.  , 274.  , ..., 271.65, 271.75, 271.65],\n",
       "        [273.7 , 273.7 , 273.7 , ..., 273.7 , 273.7 , 273.7 ]],\n",
       "\n",
       "       [[293.5 , 293.45, 289.7 , ..., 294.75, 293.2 , 293.75],\n",
       "        [292.25, 292.7 , 293.25, ..., 294.55, 294.55, 293.85],\n",
       "        [295.6 , 295.3 , 296.7 , ..., 294.95, 295.55, 294.95],\n",
       "        ...,\n",
       "        [272.4 , 272.4 , 272.6 , ..., 266.7 , 266.5 , 267.15],\n",
       "        [274.4 , 274.7 , 274.7 , ..., 269.1 , 269.  , 269.25],\n",
       "        [273.75, 273.75, 273.75, ..., 273.75, 273.75, 273.75]]])"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from dask import delayed\n",
    "z=delayed(TDcompute)(RH.data,T.data)\n",
    "%time z.compute()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "import dask.array as da\n",
    "RH1=da.from_array(RH.data)\n",
    "T1=da.from_array(T.data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<table>\n",
       "    <tr>\n",
       "        <td>\n",
       "            <table>\n",
       "                <thead>\n",
       "                    <tr>\n",
       "                        <td> </td>\n",
       "                        <th> Array </th>\n",
       "                        <th> Chunk </th>\n",
       "                    </tr>\n",
       "                </thead>\n",
       "                <tbody>\n",
       "                    \n",
       "                    <tr>\n",
       "                        <th> Bytes </th>\n",
       "                        <td> 506.44 kiB </td>\n",
       "                        <td> 506.44 kiB </td>\n",
       "                    </tr>\n",
       "                    \n",
       "                    <tr>\n",
       "                        <th> Shape </th>\n",
       "                        <td> (24, 37, 73) </td>\n",
       "                        <td> (24, 37, 73) </td>\n",
       "                    </tr>\n",
       "                    <tr>\n",
       "                        <th> Count </th>\n",
       "                        <td> 1 Tasks </td>\n",
       "                        <td> 1 Chunks </td>\n",
       "                    </tr>\n",
       "                    <tr>\n",
       "                    <th> Type </th>\n",
       "                    <td> float64 </td>\n",
       "                    <td> numpy.ndarray </td>\n",
       "                    </tr>\n",
       "                </tbody>\n",
       "            </table>\n",
       "        </td>\n",
       "        <td>\n",
       "        <svg width=\"205\" height=\"136\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
       "\n",
       "  <!-- Horizontal lines -->\n",
       "  <line x1=\"10\" y1=\"0\" x2=\"35\" y2=\"25\" style=\"stroke-width:2\" />\n",
       "  <line x1=\"10\" y1=\"60\" x2=\"35\" y2=\"86\" style=\"stroke-width:2\" />\n",
       "\n",
       "  <!-- Vertical lines -->\n",
       "  <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"60\" style=\"stroke-width:2\" />\n",
       "  <line x1=\"35\" y1=\"25\" x2=\"35\" y2=\"86\" style=\"stroke-width:2\" />\n",
       "\n",
       "  <!-- Colored Rectangle -->\n",
       "  <polygon points=\"10.0,0.0 35.789712581124604,25.789712581124608 35.789712581124604,86.61163038934379 10.0,60.821917808219176\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
       "\n",
       "  <!-- Horizontal lines -->\n",
       "  <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
       "  <line x1=\"35\" y1=\"25\" x2=\"155\" y2=\"25\" style=\"stroke-width:2\" />\n",
       "\n",
       "  <!-- Vertical lines -->\n",
       "  <line x1=\"10\" y1=\"0\" x2=\"35\" y2=\"25\" style=\"stroke-width:2\" />\n",
       "  <line x1=\"130\" y1=\"0\" x2=\"155\" y2=\"25\" style=\"stroke-width:2\" />\n",
       "\n",
       "  <!-- Colored Rectangle -->\n",
       "  <polygon points=\"10.0,0.0 130.0,0.0 155.7897125811246,25.789712581124608 35.789712581124604,25.789712581124608\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
       "\n",
       "  <!-- Horizontal lines -->\n",
       "  <line x1=\"35\" y1=\"25\" x2=\"155\" y2=\"25\" style=\"stroke-width:2\" />\n",
       "  <line x1=\"35\" y1=\"86\" x2=\"155\" y2=\"86\" style=\"stroke-width:2\" />\n",
       "\n",
       "  <!-- Vertical lines -->\n",
       "  <line x1=\"35\" y1=\"25\" x2=\"35\" y2=\"86\" style=\"stroke-width:2\" />\n",
       "  <line x1=\"155\" y1=\"25\" x2=\"155\" y2=\"86\" style=\"stroke-width:2\" />\n",
       "\n",
       "  <!-- Colored Rectangle -->\n",
       "  <polygon points=\"35.789712581124604,25.789712581124608 155.7897125811246,25.789712581124608 155.7897125811246,86.61163038934379 35.789712581124604,86.61163038934379\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
       "\n",
       "  <!-- Text -->\n",
       "  <text x=\"95.789713\" y=\"106.611630\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >73</text>\n",
       "  <text x=\"175.789713\" y=\"56.200671\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,175.789713,56.200671)\">37</text>\n",
       "  <text x=\"12.894856\" y=\"93.716774\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,12.894856,93.716774)\">24</text>\n",
       "</svg>\n",
       "        </td>\n",
       "    </tr>\n",
       "</table>"
      ],
      "text/plain": [
       "dask.array<array, shape=(24, 37, 73), dtype=float64, chunksize=(24, 37, 73), chunktype=numpy.ndarray>"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "RH1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Wall time: 26.5 s\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "array([[[290.8 , 290.05, 288.75, ..., 292.15, 291.2 , 292.1 ],\n",
       "        [288.6 , 286.85, 287.95, ..., 289.4 , 288.65, 291.2 ],\n",
       "        [290.25, 291.8 , 293.7 , ..., 288.5 , 287.9 , 291.1 ],\n",
       "        ...,\n",
       "        [274.5 , 274.95, 274.95, ..., 276.75, 276.75, 276.75],\n",
       "        [276.35, 276.35, 276.35, ..., 273.15, 273.15, 273.05],\n",
       "        [275.9 , 275.9 , 275.9 , ..., 275.9 , 275.9 , 275.9 ]],\n",
       "\n",
       "       [[292.15, 291.45, 290.6 , ..., 291.55, 290.8 , 291.15],\n",
       "        [292.  , 289.35, 290.6 , ..., 286.55, 288.3 , 289.8 ],\n",
       "        [291.15, 293.1 , 294.7 , ..., 285.1 , 285.7 , 290.3 ],\n",
       "        ...,\n",
       "        [273.65, 273.65, 273.65, ..., 275.8 , 275.8 , 276.25],\n",
       "        [275.6 , 275.6 , 275.6 , ..., 272.85, 272.8 , 273.2 ],\n",
       "        [275.7 , 275.7 , 275.7 , ..., 275.7 , 275.7 , 275.7 ]],\n",
       "\n",
       "       [[290.7 , 291.05, 289.75, ..., 290.35, 292.  , 294.1 ],\n",
       "        [291.8 , 288.25, 290.1 , ..., 289.8 , 290.2 , 291.6 ],\n",
       "        [294.35, 293.5 , 297.1 , ..., 289.  , 290.5 , 292.45],\n",
       "        ...,\n",
       "        [275.3 , 274.85, 274.85, ..., 275.2 , 275.2 , 275.55],\n",
       "        [274.4 , 274.5 , 274.05, ..., 276.2 , 276.1 , 276.  ],\n",
       "        [275.  , 275.  , 275.  , ..., 275.  , 275.  , 275.  ]],\n",
       "\n",
       "       ...,\n",
       "\n",
       "       [[292.65, 291.8 , 287.85, ..., 289.8 , 289.5 , 289.8 ],\n",
       "        [291.15, 290.15, 291.1 , ..., 287.65, 289.15, 288.3 ],\n",
       "        [292.15, 293.75, 294.8 , ..., 288.2 , 288.6 , 288.3 ],\n",
       "        ...,\n",
       "        [272.75, 273.2 , 273.2 , ..., 267.  , 266.95, 266.75],\n",
       "        [273.8 , 273.8 , 273.9 , ..., 271.8 , 271.7 , 272.05],\n",
       "        [273.2 , 273.2 , 273.2 , ..., 273.2 , 273.2 , 273.2 ]],\n",
       "\n",
       "       [[291.2 , 291.6 , 287.3 , ..., 291.9 , 290.55, 291.15],\n",
       "        [288.5 , 288.5 , 291.8 , ..., 290.3 , 290.1 , 290.65],\n",
       "        [294.85, 295.15, 296.35, ..., 289.05, 290.65, 291.6 ],\n",
       "        ...,\n",
       "        [271.4 , 271.95, 271.95, ..., 264.45, 264.15, 264.5 ],\n",
       "        [273.1 , 273.1 , 273.1 , ..., 269.3 , 269.55, 269.45],\n",
       "        [272.7 , 272.7 , 272.7 , ..., 272.7 , 272.7 , 272.7 ]],\n",
       "\n",
       "       [[292.15, 291.9 , 286.2 , ..., 292.1 , 290.  , 290.95],\n",
       "        [289.65, 290.25, 291.  , ..., 291.9 , 291.9 , 290.85],\n",
       "        [294.2 , 293.9 , 296.  , ..., 292.5 , 293.25, 292.3 ],\n",
       "        ...,\n",
       "        [270.65, 270.65, 271.  , ..., 261.2 , 261.  , 262.  ],\n",
       "        [273.35, 273.8 , 273.8 , ..., 264.8 , 264.7 , 265.1 ],\n",
       "        [271.95, 271.95, 271.95, ..., 271.95, 271.95, 271.95]]])"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from dask import delayed\n",
    "b=delayed(TDcompute)(RH1,T1)\n",
    "%time b.compute()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(None, <pyximport.pyximport.PyxImporter at 0x2440b0a0af0>)"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import pyximport\n",
    "pyximport.install()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Wall time: 21.5 s\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "array([[[288.4 , 287.5 , 286.05, ..., 289.35, 288.25, 289.5 ],\n",
       "        [285.5 , 283.25, 284.7 , ..., 285.75, 284.8 , 288.25],\n",
       "        [287.85, 289.95, 292.35, ..., 284.45, 283.7 , 287.95],\n",
       "        ...,\n",
       "        [273.6 , 274.2 , 274.2 , ..., 276.6 , 276.6 , 276.6 ],\n",
       "        [276.2 , 276.2 , 276.2 , ..., 271.85, 271.85, 271.75],\n",
       "        [275.6 , 275.6 , 275.6 , ..., 275.6 , 275.6 , 275.6 ]],\n",
       "\n",
       "       [[290.45, 289.6 , 288.55, ..., 288.6 , 287.65, 288.2 ],\n",
       "        [290.1 , 286.6 , 288.2 , ..., 282.  , 284.3 , 286.3 ],\n",
       "        [289.1 , 291.75, 293.85, ..., 280.  , 280.75, 286.8 ],\n",
       "        ...,\n",
       "        [272.65, 272.65, 272.65, ..., 275.5 , 275.5 , 276.1 ],\n",
       "        [275.3 , 275.3 , 275.3 , ..., 271.55, 271.5 , 272.05],\n",
       "        [275.4 , 275.4 , 275.4 , ..., 275.4 , 275.4 , 275.4 ]],\n",
       "\n",
       "       [[288.65, 289.2 , 287.35, ..., 287.25, 289.4 , 292.2 ],\n",
       "        [289.95, 285.35, 287.7 , ..., 286.3 , 286.9 , 288.8 ],\n",
       "        [293.15, 292.15, 296.9 , ..., 285.15, 287.2 , 289.85],\n",
       "        ...,\n",
       "        [274.7 , 274.1 , 274.1 , ..., 274.9 , 274.9 , 275.4 ],\n",
       "        [273.8 , 273.9 , 273.3 , ..., 276.2 , 276.1 , 276.  ],\n",
       "        [274.7 , 274.7 , 274.7 , ..., 274.7 , 274.7 , 274.7 ]],\n",
       "\n",
       "       ...,\n",
       "\n",
       "       [[291.3 , 290.1 , 284.95, ..., 286.1 , 285.85, 286.3 ],\n",
       "        [289.1 , 287.75, 289.05, ..., 283.25, 285.3 , 284.3 ],\n",
       "        [290.45, 292.55, 293.95, ..., 284.  , 284.55, 284.3 ],\n",
       "        ...,\n",
       "        [272.  , 272.6 , 272.6 , ..., 263.95, 263.9 , 263.7 ],\n",
       "        [273.5 , 273.5 , 273.6 , ..., 270.5 , 270.4 , 270.9 ],\n",
       "        [272.6 , 272.6 , 272.6 , ..., 272.6 , 272.6 , 272.6 ]],\n",
       "\n",
       "       [[289.5 , 289.9 , 284.25, ..., 289.1 , 287.4 , 288.2 ],\n",
       "        [285.6 , 285.6 , 289.95, ..., 287.  , 286.8 , 287.5 ],\n",
       "        [293.8 , 294.3 , 295.8 , ..., 285.4 , 287.5 , 288.8 ],\n",
       "        ...,\n",
       "        [269.8 , 270.5 , 270.5 , ..., 260.5 , 260.2 , 260.7 ],\n",
       "        [272.25, 272.25, 272.25, ..., 267.  , 267.4 , 267.3 ],\n",
       "        [271.7 , 271.7 , 271.7 , ..., 271.7 , 271.7 , 271.7 ]],\n",
       "\n",
       "       [[290.8 , 290.4 , 282.8 , ..., 289.5 , 286.9 , 288.2 ],\n",
       "        [287.1 , 287.85, 288.8 , ..., 289.3 , 289.3 , 287.9 ],\n",
       "        [292.8 , 292.55, 295.3 , ..., 290.05, 291.  , 289.7 ],\n",
       "        ...,\n",
       "        [268.9 , 268.9 , 269.4 , ..., 255.95, 255.75, 257.1 ],\n",
       "        [272.35, 272.9 , 272.9 , ..., 260.65, 260.55, 261.1 ],\n",
       "        [270.2 , 270.2 , 270.2 , ..., 270.2 , 270.2 , 270.2 ]]])"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import TDcompute\n",
    "%time TDcompute.TDcompute(RH.data,T.data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Wall time: 19 s\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "array([[[286.05, 285.  , 283.4 , ..., 286.6 , 285.35, 286.95],\n",
       "        [282.5 , 279.75, 281.55, ..., 282.2 , 281.05, 285.35],\n",
       "        [285.5 , 288.1 , 291.  , ..., 280.55, 279.65, 284.9 ],\n",
       "        ...,\n",
       "        [272.7 , 273.45, 273.45, ..., 276.45, 276.45, 276.45],\n",
       "        [276.05, 276.05, 276.05, ..., 270.55, 270.55, 270.45],\n",
       "        [275.3 , 275.3 , 275.3 , ..., 275.3 , 275.3 , 275.3 ]],\n",
       "\n",
       "       [[288.75, 287.75, 286.55, ..., 285.7 , 284.6 , 285.3 ],\n",
       "        [288.25, 283.95, 285.85, ..., 277.6 , 280.4 , 282.9 ],\n",
       "        [287.1 , 290.4 , 293.  , ..., 275.1 , 276.  , 283.4 ],\n",
       "        ...,\n",
       "        [271.65, 271.65, 271.65, ..., 275.2 , 275.2 , 275.95],\n",
       "        [275.  , 275.  , 275.  , ..., 270.25, 270.2 , 270.9 ],\n",
       "        [275.1 , 275.1 , 275.1 , ..., 275.1 , 275.1 , 275.1 ]],\n",
       "\n",
       "       [[286.65, 287.35, 285.  , ..., 284.2 , 286.85, 290.3 ],\n",
       "        [288.1 , 282.55, 285.35, ..., 282.9 , 283.7 , 286.1 ],\n",
       "        [291.95, 290.8 , 296.7 , ..., 281.4 , 283.95, 287.3 ],\n",
       "        ...,\n",
       "        [274.1 , 273.35, 273.35, ..., 274.6 , 274.6 , 275.25],\n",
       "        [273.2 , 273.3 , 272.55, ..., 276.2 , 276.1 , 276.  ],\n",
       "        [274.4 , 274.4 , 274.4 , ..., 274.4 , 274.4 , 274.4 ]],\n",
       "\n",
       "       ...,\n",
       "\n",
       "       [[289.95, 288.4 , 282.15, ..., 282.5 , 282.3 , 282.9 ],\n",
       "        [287.1 , 285.4 , 287.05, ..., 279.  , 281.55, 280.4 ],\n",
       "        [288.75, 291.35, 293.1 , ..., 279.9 , 280.65, 280.4 ],\n",
       "        ...,\n",
       "        [271.3 , 272.  , 272.  , ..., 260.95, 260.9 , 260.75],\n",
       "        [273.2 , 273.2 , 273.3 , ..., 269.2 , 269.1 , 269.75],\n",
       "        [272.  , 272.  , 272.  , ..., 272.  , 272.  , 272.  ]],\n",
       "\n",
       "       [[287.85, 288.25, 281.25, ..., 286.4 , 284.35, 285.3 ],\n",
       "        [282.75, 282.75, 288.1 , ..., 283.75, 283.6 , 284.45],\n",
       "        [292.75, 293.45, 295.25, ..., 281.85, 284.45, 286.1 ],\n",
       "        ...,\n",
       "        [268.25, 269.05, 269.05, ..., 256.65, 256.4 , 257.  ],\n",
       "        [271.4 , 271.4 , 271.4 , ..., 264.7 , 265.25, 265.15],\n",
       "        [270.7 , 270.7 , 270.7 , ..., 270.7 , 270.7 , 270.7 ]],\n",
       "\n",
       "       [[289.45, 288.9 , 279.5 , ..., 286.95, 283.85, 285.5 ],\n",
       "        [284.6 , 285.5 , 286.6 , ..., 286.75, 286.75, 285.  ],\n",
       "        [291.45, 291.2 , 294.6 , ..., 287.65, 288.8 , 287.15],\n",
       "        ...,\n",
       "        [267.2 , 267.2 , 267.85, ..., 250.95, 250.75, 252.4 ],\n",
       "        [271.35, 272.05, 272.05, ..., 256.65, 256.55, 257.25],\n",
       "        [268.45, 268.45, 268.45, ..., 268.45, 268.45, 268.45]]])"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import TDcompute\n",
    "from dask import delayed\n",
    "b=delayed(TDcompute.TDcompute)(RH1,T1)\n",
    "%time b.compute()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3.10.4 ('py310')",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.4"
  },
  "orig_nbformat": 4,
  "vscode": {
   "interpreter": {
    "hash": "1af7d1ae3c55d82bbda2a5569c7a9f2f2d33ff4c43dd1c666120ac4867346c8c"
   }
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
